From: David Harton Date: Fri, 15 Mar 2019 16:08:32 +0000 (-0400) Subject: net/ixgbe: restore VLAN filter for VF X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b28e4b87d69a786706f62666e8b7dc19f79ad51a;p=dpdk.git net/ixgbe: restore VLAN filter for VF ixgbevf VLAN strip and extend capabilities were removed when migrating to the bit flags implementation. Restoring the capability to enable the VLAN strip offload at configuration time. Fixes: ec3b1124d14d ("net/ixgbe: convert to new Rx offloads API") Cc: stable@dpdk.org Signed-off-by: David Harton Acked-by: Wei Zhao --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index e92a70fb38..e71d3c188a 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -2853,14 +2853,14 @@ ixgbe_get_rx_port_offloads(struct rte_eth_dev *dev) DEV_RX_OFFLOAD_TCP_CKSUM | DEV_RX_OFFLOAD_KEEP_CRC | DEV_RX_OFFLOAD_JUMBO_FRAME | + DEV_RX_OFFLOAD_VLAN_FILTER | DEV_RX_OFFLOAD_SCATTER; if (hw->mac.type == ixgbe_mac_82598EB) offloads |= DEV_RX_OFFLOAD_VLAN_STRIP; if (ixgbe_is_vf(dev) == 0) - offloads |= (DEV_RX_OFFLOAD_VLAN_FILTER | - DEV_RX_OFFLOAD_VLAN_EXTEND); + offloads |= DEV_RX_OFFLOAD_VLAN_EXTEND; /* * RSC is only supported by 82599 and x540 PF devices in a non-SR-IOV