Allow DPDK per interface startup config to enable/disable VLAN stripping 06/1906/3
authorJohn Lo <loj@cisco.com>
Thu, 7 Jul 2016 17:54:44 +0000 (13:54 -0400)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 8 Jul 2016 09:38:56 +0000 (09:38 +0000)
commitce3e971bab3a67b5d484294f5cfd3d270c76bc38
tree4eb8bc94dcc88259b45b699c71802f2265ad1962
parent618ab08c4f0bccc4ceca6a8b18ea797fbe9fd5a7
Allow DPDK per interface startup config to enable/disable VLAN stripping

The init of VIC/ENIC ports enable VLAN stripping of received packets by
default, which is different to all other devices. The VLAN stripping of
ENIC ports can be disabled by adding the per device DPDK config as
"vlan-strip-offload off" such as:
  dpdk {...  dev 0000:0c:00.0 {vlan-strip-offload off} ...}
The per device config "vlan-strip-offload on" can be used for enabling VLAN
stripping for other devices which support this function but is disabled
by default.

Change-Id: I9c81904a87c26868a07900b03677aeeb57f72372
Signed-off-by: John Lo <loj@cisco.com>
vnet/vnet/devices/dpdk/dpdk.h
vnet/vnet/devices/dpdk/init.c