Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9ae190e
)
dpdk: fix interface naming
44/19144/1
author
Florin Coras
<fcoras@cisco.com>
Wed, 24 Apr 2019 15:45:39 +0000
(08:45 -0700)
committer
Florin Coras
<fcoras@cisco.com>
Wed, 24 Apr 2019 15:45:39 +0000
(08:45 -0700)
Change-Id: Ia092a93a7ac0cbf9338f9d4a5db8b94b23549a13
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/plugins/dpdk/device/init.c
patch
|
blob
|
history
diff --git
a/src/plugins/dpdk/device/init.c
b/src/plugins/dpdk/device/init.c
index
4d8ca4f
..
c83b2b5
100644
(file)
--- 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;