From: Qi Zhang Date: Wed, 29 Nov 2017 10:27:30 +0000 (-0500) Subject: net/i40e: fix VLAN offload setting X-Git-Tag: spdx-start~547 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=48a203711829d151e4896f953c31f4618ce710fa;p=dpdk.git net/i40e: fix VLAN offload setting Vlan offload flag "rx_mode.hw_vlan_extend" should be considerred at rte_eth_dev_configure stage as well as "rx_mode.hw_vlan_strip" and "rx_mode.hw_vlan_filter". Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: stable@dpdk.org Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index fc386154f0..3515f24103 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -5286,15 +5286,15 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev) int mask = 0; /* Apply vlan offload setting */ - mask = ETH_VLAN_STRIP_MASK | ETH_VLAN_FILTER_MASK; + mask = ETH_VLAN_STRIP_MASK | + ETH_VLAN_FILTER_MASK | + ETH_VLAN_EXTEND_MASK; ret = i40e_vlan_offload_set(dev, mask); if (ret) { PMD_DRV_LOG(INFO, "Failed to update vlan offload"); return ret; } - /* Apply double-vlan setting, not implemented yet */ - /* Apply pvid setting */ ret = i40e_vlan_pvid_set(dev, data->dev_conf.txmode.pvid, data->dev_conf.txmode.hw_vlan_insert_pvid);