vlan: Add function to retrieve EtherType from vlan packets.
authorHao Zheng <hzheng@nicira.com>
Thu, 11 Nov 2010 13:47:57 +0000 (13:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 20:30:57 +0000 (12:30 -0800)
commit0a85df004667c99efc31fab07386823eefce3be5
tree2fe059bc77f52e3cdb6ab665e41dd1eba9d4fc08
parent167c25e4c5501f8b7e37f949d23652975c5a769c
vlan: Add function to retrieve EtherType from vlan packets.

Depending on how a packet is vlan tagged (i.e. hardware accelerated or
not), the encapsulated protocol is stored in different locations.  This
provides a consistent method of accessing that protocol, which is needed
by drivers, security checks, etc.

Signed-off-by: Hao Zheng <hzheng@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h