net/enic: fix VLAN inner type matching for old hardware
authorHyong Youb Kim <hyonkim@cisco.com>
Wed, 10 Apr 2019 05:35:00 +0000 (22:35 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 12 Apr 2019 09:02:02 +0000 (11:02 +0200)
commit6e54c8ac5c15935d42d47950a55406c7f5517117
tree3bcfbd688a27cb282486930c27902e57e5da7018
parent2b0e0eba2c37a1d53bf179c2e676eb920a6ac85c
net/enic: fix VLAN inner type matching for old hardware

The vlan pattern handler currently assumes the NIC always strips vlan
header from the L2 buffer, regardless of the vlan strip setting. But,
with older VIC models, the vlan header is actually present in the L2
buffer if stripping is disabled. So in this case, the inner ether type
needs to be shifted by that much.

Fixes: 6ced137607d0 ("net/enic: flow API for NICs with advanced filters enabled")
Cc: stable@dpdk.org
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_flow.c