aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-24 08:45:39 -0700
committerFlorin Coras <fcoras@cisco.com>2019-04-24 08:45:39 -0700
commit524fb8d65b7a75e6a5b6fd94db44a3fb42d780ac (patch)
treef7877b1f744f9e61bf582c1aa3cc8f22ec4f0f61 /src/plugins
parent9ae190e9d228bfc1358482d4f07da1f4cfd41c90 (diff)
dpdk: fix interface naming
Change-Id: Ia092a93a7ac0cbf9338f9d4a5db8b94b23549a13 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 4d8ca4fa45b..c83b2b57c4c 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -318,7 +318,7 @@ dpdk_lib_init (dpdk_main_t * dm)
/* Handle interface naming for devices with multiple ports sharing same PCI ID */
if (pci_dev &&
- ((next_port_id = rte_eth_find_next (i)) != RTE_MAX_ETHPORTS))
+ ((next_port_id = rte_eth_find_next (i + 1)) != RTE_MAX_ETHPORTS))
{
struct rte_eth_dev_info di = { 0 };
struct rte_pci_device *next_pci_dev;