summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/devices/dpdk/init.c4
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;