From: Dimitrios Markou Date: Mon, 12 Oct 2020 10:44:38 +0000 (+0200) Subject: dpdk: Disable VLAN filtering for VLAN sub-interface in i40e driver X-Git-Tag: v21.06-rc0~320 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=18ddf624b49256fa065472971ef070a49587fd3c;p=vpp.git dpdk: Disable VLAN filtering for VLAN sub-interface in i40e driver 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 Change-Id: I02c6980e3b01870b69a9375f281125ad48477827 --- diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index 532987c3130..7a86ee0fe6b 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -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)