Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9545b22d authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

vlan: Use eth_proto_is_802_3



Replace "ntohs(proto) >= ETH_P_802_3_MIN" w/ eth_proto_is_802_3(proto).

Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6713fc9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ static inline void vlan_set_encap_proto(struct sk_buff *skb,
	 */

	proto = vhdr->h_vlan_encapsulated_proto;
	if (ntohs(proto) >= ETH_P_802_3_MIN) {
	if (eth_proto_is_802_3(proto)) {
		skb->protocol = proto;
		return;
	}