summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2020-03-23 11:27:49 -0500
committerDamjan Marion <dmarion@me.com>2020-05-19 18:54:59 +0000
commit827b929301ba3c8ac3a3d23262b0987a5fc33632 (patch)
tree41a396f9856094a77e977f63b948c2bb24f0b072 /src
parentc32a84c70efb45081568fc8aa5fa1884d74865fe (diff)
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 <mgsmith@netgate.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/device/init.c2
1 files changed, 1 insertions, 1 deletions
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;