From 18ddf624b49256fa065472971ef070a49587fd3c Mon Sep 17 00:00:00 2001 From: Dimitrios Markou Date: Mon, 12 Oct 2020 12:44:38 +0200 Subject: 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 --- src/plugins/dpdk/device/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- cgit 1.2.3-korg