summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/dpdk.h
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2017-03-17 18:05:35 -0400
committerJohn Lo <loj@cisco.com>2017-03-18 20:27:35 +0000
commit95475a3661b95150c8d1e60a3942b91c2b5d06bc (patch)
tree0f9c24d7169eabc50ca5ad9e413278d838f27dac /src/plugins/dpdk/device/dpdk.h
parent898273fbb588811824bb27ad0ef203d358a7121a (diff)
Fix bonded interface name to use instance number starting from 0
With DPDK 17.02, bonded interface device_index does not start from 0 and may vary depends on the existence of other interfaces. Implement instance number for bonded interface so the interface name can make use of instance number starting from 0. Change-Id: Ia8eb7bd530446faa02ee7c7d1f6abdc22ac60b62 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk.h')
-rw-r--r--src/plugins/dpdk/device/dpdk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h
index 6328d115b42..06d89adb3b5 100644
--- a/src/plugins/dpdk/device/dpdk.h
+++ b/src/plugins/dpdk/device/dpdk.h
@@ -220,8 +220,8 @@ typedef struct
dpdk_device_hqos_per_worker_thread_t *hqos_wt;
dpdk_device_hqos_per_hqos_thread_t *hqos_ht;
- /* af_packet */
- u8 af_packet_port_id;
+ /* af_packet or BondEthernet instance number */
+ u8 port_id;
struct rte_eth_link link;
f64 time_last_link_update;