From: John Daley Date: Tue, 19 Jul 2016 22:43:45 +0000 (-0700) Subject: net/enic: heed VLAN strip flag X-Git-Tag: spdx-start~6116 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=892741d220534ca7678ff1789779b464388fa727;p=dpdk.git net/enic: heed VLAN strip flag The configure function enicpmd_dev_configure() was not paying attention to the rxmode VLAN strip bit. Set the VLAN strip mode according to the bit. Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: John Daley Reviewed-by: David Harton Tested-by: David Harton --- diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 59082d2a73..47b07c921d 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -356,6 +356,7 @@ static int enicpmd_dev_configure(struct rte_eth_dev *eth_dev) eth_dev->data->dev_conf.rxmode.split_hdr_size); } + enicpmd_vlan_offload_set(eth_dev, ETH_VLAN_STRIP_MASK); enic->hw_ip_checksum = eth_dev->data->dev_conf.rxmode.hw_ip_checksum; return 0; }