From: Matthew Smith Date: Mon, 23 Mar 2020 16:27:49 +0000 (-0500) Subject: dpdk: change netvsc device port type X-Git-Tag: v21.01-rc0~375 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=827b929301ba3c8ac3a3d23262b0987a5fc33632;p=vpp.git dpdk: change netvsc device port type Netvsc devices have the port type determined from their link speed. The link speed between reboots of an Azure VM does not always end up at the same value, so an interface that was FortyGigabitEthernet0 earlier may be FiftyGigabitEthernet0 now. That makes it difficult to maintain a persistent store of configurations and apply those at startup. Change the port type to be VF so the name will always be generated as VirtualFunctionEthernetX. Type: improvement Change-Id: I58cab852b87c0bcd9f73afe239803f38dab5c159 Signed-off-by: Matthew Smith --- diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 0b80f5d4906..3eb510d6142 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -571,7 +571,7 @@ dpdk_lib_init (dpdk_main_t * dm) { struct rte_eth_link l; rte_eth_link_get_nowait (i, &l); - xd->port_type = port_type_from_link_speed (l.link_speed); + xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF; } break;