From: Zhihong Peng Date: Tue, 21 Jul 2020 02:45:28 +0000 (-0400) Subject: net/i40e: report VLAN filter capability X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=inline;h=664c253e7f9d4eab460fa61458e1640a1c1caea7;p=dpdk.git net/i40e: report VLAN filter capability The rte_eth_dev_set_vlan_offload function will check vlan rx offload capability, the i40e vf has vlan filter feature but DEV_RX_OFFLOAD_VLAN_FILTER is not set into the capability, that will cause setting fail. So need to add this capability in i40e_vf_representor_dev_infos_get function. Fixes: e0cb96204b71 ("net/i40e: add support for representor ports") Cc: stable@dpdk.org Signed-off-by: Zhihong Peng Acked-by: Jeff Guo --- diff --git a/drivers/net/i40e/i40e_vf_representor.c b/drivers/net/i40e/i40e_vf_representor.c index b07b35c03f..083bc1a5f3 100644 --- a/drivers/net/i40e/i40e_vf_representor.c +++ b/drivers/net/i40e/i40e_vf_representor.c @@ -46,7 +46,8 @@ i40e_vf_representor_dev_infos_get(struct rte_eth_dev *ethdev, DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_IPV4_CKSUM | DEV_RX_OFFLOAD_UDP_CKSUM | - DEV_RX_OFFLOAD_TCP_CKSUM; + DEV_RX_OFFLOAD_TCP_CKSUM | + DEV_RX_OFFLOAD_VLAN_FILTER; dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS | DEV_TX_OFFLOAD_VLAN_INSERT |