diff options
author | John Daley <johndale@cisco.com> | 2016-07-19 15:43:45 -0700 |
---|---|---|
committer | Thomas Monjalon <thomas.monjalon@6wind.com> | 2016-07-22 00:49:10 +0200 |
commit | 892741d220534ca7678ff1789779b464388fa727 (patch) | |
tree | 0bd5e29eac934297042ff13c17632dcc9916dee8 /drivers | |
parent | 1ccc51b079c4e36d5701dc1500b2aafa1235858e (diff) | |
download | dpdk-892741d220534ca7678ff1789779b464388fa727.zip dpdk-892741d220534ca7678ff1789779b464388fa727.tar.gz dpdk-892741d220534ca7678ff1789779b464388fa727.tar.xz |
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 <johndale@cisco.com>
Reviewed-by: David Harton <dharton@cisco.com>
Tested-by: David Harton <dharton@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/enic/enic_ethdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 59082d2..47b07c9 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; } |