diff options
author | John Lo <loj@cisco.com> | 2016-02-25 10:17:30 -0500 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2016-02-25 10:22:59 -0500 |
commit | 1c32a89ea4cfaf23e8a4d8b36293c7824cc3d748 (patch) | |
tree | b7e51271c2f92ccacaf7249fa3bb50ed6654f5df /vnet | |
parent | 4667c229a05458eb7558cf927a44df3d5f585c11 (diff) |
Fix indexing error in init.c for vnet dpdk.
Change-Id: I1bab9e8cf428b0d27edf98fa54ffc3edc32fd4f5
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/devices/dpdk/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c index 6589d2fe14b..c9187d5eeb5 100644 --- a/vnet/vnet/devices/dpdk/init.c +++ b/vnet/vnet/devices/dpdk/init.c @@ -384,7 +384,7 @@ dpdk_lib_init (dpdk_main_t * dm) /* Cisco VIC */ case VNET_DPDK_PMD_VICE: case VNET_DPDK_PMD_ENIC: - rte_eth_link_get_nowait(xd->device_index, &l); + rte_eth_link_get_nowait(i, &l); if (l.link_speed == 40000) { xd->port_type = VNET_DPDK_PORT_TYPE_ETH_40G; @@ -417,7 +417,7 @@ dpdk_lib_init (dpdk_main_t * dm) xd->port_type = VNET_DPDK_PORT_TYPE_ETH_40G; break; case I40E_DEV_ID_VF: - rte_eth_link_get_nowait(xd->device_index, &l); + rte_eth_link_get_nowait(i, &l); xd->port_type = l.link_speed == 10000 ? VNET_DPDK_PORT_TYPE_ETH_10G : VNET_DPDK_PORT_TYPE_ETH_40G; break; |