summaryrefslogtreecommitdiff
path: root/drivers/net/netvsc/hn_ethdev.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-12-13 17:26:19 -0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-21 16:22:40 +0100
commit3c32fdf432345ad037524af3e2f0e3db9ee455cc (patch)
treefa8a20ff26393c98606db6cf4c9e11c3266e11dc /drivers/net/netvsc/hn_ethdev.c
parent63056c192005336d7c9d2639efe317639dd3baaa (diff)
downloaddpdk-3c32fdf432345ad037524af3e2f0e3db9ee455cc.zip
dpdk-3c32fdf432345ad037524af3e2f0e3db9ee455cc.tar.gz
dpdk-3c32fdf432345ad037524af3e2f0e3db9ee455cc.tar.xz
net/netvsc: support receive without VLAN strip
In some cases, VLAN stripping is not desireable. If necessary re-insert stripped VLAN tag. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Diffstat (limited to 'drivers/net/netvsc/hn_ethdev.c')
-rw-r--r--drivers/net/netvsc/hn_ethdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 1256fa3..2256147 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -378,6 +378,8 @@ static int hn_dev_configure(struct rte_eth_dev *dev)
return -EINVAL;
}
+ hv->vlan_strip = !!(rxmode->offloads & DEV_RX_OFFLOAD_VLAN_STRIP);
+
err = hn_rndis_conf_offload(hv, txmode->offloads,
rxmode->offloads);
if (err) {