datapath: Add vlan acceleration field for older kernels.
authorJesse Gross <jesse@nicira.com>
Fri, 31 Dec 2010 04:48:38 +0000 (20:48 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 7 Feb 2011 21:49:00 +0000 (13:49 -0800)
commit6e0ce48e27d5a845bdc8b57fb41bcec8a54f336a
treed5c2313b0b239c9d5c67e5a963ce724b97b9d055
parenta992ec0b06bfddc4e8c2a50d79362b3dfb286dd5
datapath: Add vlan acceleration field for older kernels.

Kernels prior to 2.6.27 did not have a vlan_tci field in struct
sk_buff for vlan acceleration.  It's very convenient to use this
field for manipulating vlan tags, so we would like to use it as
the primary mechanism.  To enable this, this commit adds similar
infrastructure to the OVS_CB on the kernels that need it and a
set of functions to use the correct location.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/Modules.mk
datapath/datapath.h
datapath/vlan.c [new file with mode: 0644]
datapath/vlan.h [new file with mode: 0644]
datapath/vport-internal_dev.c
datapath/vport-netdev.c