dpdk: fix program vlans on ixgbevf 19/35619/2
authorDzmitry Sautsa <dzmitry.sautsa@nokia.com>
Thu, 10 Mar 2022 13:17:07 +0000 (14:17 +0100)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 10 Mar 2022 22:34:26 +0000 (22:34 +0000)
Recent "dpdk: refactor device setup" have broken vlans programming for IXGBE_VF.

Type: fix

Signed-off-by: Dzmitry Sautsa <dzmitry.sautsa@nokia.com>
Change-Id: Idacda33a473f6b10dbe002d9926661a19d0f3f97

src/plugins/dpdk/device/driver.c

index ed3d94c..7a2b3e7 100644 (file)
@@ -55,11 +55,16 @@ static dpdk_driver_t dpdk_drivers[] = {
     .int_unmaskable = 1,
   },
   {
-    .drivers = DPDK_DRIVERS ({ "net_e1000_igb_vf", "Intel e1000 VF" },
-                            { "net_ixgbe_vf", "Intel 82599 VF" }),
+    .drivers = DPDK_DRIVERS ({ "net_e1000_igb_vf", "Intel e1000 VF" }),
     .interface_name_prefix = "VirtualFunctionEthernet",
     .use_intel_phdr_cksum = 1,
   },
+  {
+    .drivers = DPDK_DRIVERS ({ "net_ixgbe_vf", "Intel 82599 VF" }),
+    .interface_name_prefix = "VirtualFunctionEthernet",
+    .use_intel_phdr_cksum = 1,
+    .program_vlans = 1,
+  },
   {
     .drivers = DPDK_DRIVERS ({ "net_dpaa2", "NXP DPAA2 Mac" }),
     .interface_name_prefix = "TenGigabitEthernet",