Skip to content

Commit

Permalink
Merge "DPDK: fix low performance of SR-IOV VF IO lcore"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jun 13, 2016
2 parents f640017 + aba7751 commit dbd5528
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpdk/dpdk_vrouter.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,9 @@ dpdk_check_sriov_vf(void)
strncmp(dev_info.driver_name + soff, VR_DPDK_VF_PMD_SFX,
sizeof(VR_DPDK_VF_PMD_SFX)) == 0) {
/* Dedicate the first forwarding lcore to VF RX/TX. */
if (dev_info.max_tx_queues < vr_dpdk.nb_fwd_lcores) {
if (dev_info.max_tx_queues < vr_dpdk.nb_fwd_lcores
/* We also need 2 TX queues for Netlink and Packet lcores. */
+ VR_DPDK_FWD_LCORE_ID - VR_DPDK_PACKET_LCORE_ID) {
vr_dpdk.vf_lcore_id = VR_DPDK_FWD_LCORE_ID;
RTE_LOG(INFO, VROUTER,
"%s: Lcore %d: SR-IOV virtual function IO for eth device %d (%s)\n",
Expand Down

0 comments on commit dbd5528

Please sign in to comment.