net: skbuff: Coding: Use eth_type_vlan() instead of open coding it
authorShmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Tue, 20 Sep 2016 09:48:37 +0000 (12:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 05:35:57 +0000 (01:35 -0400)
commitecf4ee41d25832a6ec52f8b54dfaa46c08b949d5
tree1fe4847e6939be2735bce8f6d7bee92dcfcd08a9
parent636c2628086e40c86dac7ddc84a1c4b4fcccc6e3
net: skbuff: Coding: Use eth_type_vlan() instead of open coding it

Fix 'skb_vlan_pop' to use eth_type_vlan instead of directly comparing
skb->protocol to ETH_P_8021Q or ETH_P_8021AD.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Reviewed-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c