dpdk: Disable VLAN filtering for VLAN sub-interface in i40e driver 11/29411/3
authorDimitrios Markou <dimitrios.markou@est.tech>
Mon, 12 Oct 2020 10:44:38 +0000 (12:44 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 21 Oct 2020 02:58:26 +0000 (02:58 +0000)
When creating a VLAN sub-interface on a Fortville i40e DPDK VF,
the data plane does not work properly.

Enabling vlan filter offload overrides the VLAN strip offload setting to on.
The VLAN strip offload must be disabled for VPP VLAN sub-interfaces to work.

Ticket: https://jira.fd.io/browse/VPP-1933
Type: fix

Signed-off-by: Dimitrios Markou <dimitrios.markou@est.tech>
Change-Id: I02c6980e3b01870b69a9375f281125ad48477827

src/plugins/dpdk/device/device.c

index 532987c..7a86ee0 100644 (file)
@@ -539,8 +539,8 @@ dpdk_subif_add_del_function (vnet_main_t * vnm,
   if ((xd->flags & DPDK_DEVICE_FLAG_PMD) == 0)
     goto done;
 
-  /* currently we program VLANS only for IXGBE VF and I40E VF */
-  if ((xd->pmd != VNET_DPDK_PMD_IXGBEVF) && (xd->pmd != VNET_DPDK_PMD_I40EVF))
+  /* currently we program VLANS only for IXGBE VF */
+  if (xd->pmd != VNET_DPDK_PMD_IXGBEVF)
     goto done;
 
   if (t->sub.eth.flags.no_tags == 1)