net/af_packet: support 802.1Q VLAN
authorChas Williams <ciwillia@brocade.com>
Thu, 5 Jan 2017 13:53:44 +0000 (08:53 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:41:43 +0000 (19:41 +0100)
commit23deeebfcfa806ff0540ebd073425b4d3ad54dd7
treeed1b928531c2b7fe07ef227c68d1f0a92f8d9bd3
parent218259590ea4cdef53ff4d42fdf517e26a5e7c49
net/af_packet: support 802.1Q VLAN

AF_PACKET has some flags to check on the receive side for 802.1Q
information.  If present, we copy into the mbuf.  For transmit, we
insert any 802.1Q information into the packet before copying to the ring.

Signed-off-by: Chas Williams <ciwillia@brocade.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_packet/rte_eth_af_packet.c