vlan: Check for vlan ethernet types for 8021.q or 802.1ad
authorEric Garver <e@erig.me>
Wed, 7 Sep 2016 16:56:58 +0000 (12:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2016 00:10:28 +0000 (17:10 -0700)
commitfe19c4f971a55cea3be442d8032a5f6021702791
tree13474bb3a100c29a1ae9f23ca6cc59341c5ea936
parent8c146bb9d59aa2ac45222171916ece186c4b3943
vlan: Check for vlan ethernet types for 8021.q or 802.1ad

This is to simplify using double tagged vlans. This function allows all
valid vlan ethertypes to be checked in a single function call.
Also replace some instances that check for both ETH_P_8021Q and
ETH_P_8021AD.

Patch based on one originally by Thomas F Herbert.

Signed-off-by: Thomas F Herbert <thomasfherbert@gmail.com>
Signed-off-by: Eric Garver <e@erig.me>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h