Fix dpdk-input check for VLAN packets including VLAN strip case 55/4355/3
authorJohn Lo <loj@cisco.com>
Fri, 16 Dec 2016 04:25:04 +0000 (23:25 -0500)
committerDave Barach <openvpp@barachs.net>
Fri, 16 Dec 2016 14:29:31 +0000 (14:29 +0000)
commitd6900496dd3ecc807fb2936d3b1bb8f58a2ddf29
tree5cdd3acc86309e68e63e3f650c3a3421ef6bca7b
parent9225dee9655ce607130f9bab5472441b72e25858
Fix dpdk-input check for VLAN packets including VLAN strip case

For DPDK-16.11 or later, use packet_type to check packets with VLAN
tags. For earlier versions of DPDK, keep using ol_flags but include
PKT_RX_VLAN_STRIPPED bit as part of the VLAN tags check.

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