diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-04 14:34:10 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-05 19:24:43 -0400 |
commit | 9545b22da647cf6fbbac9c5a48c50fd72d892b11 (patch) | |
tree | de68fd72233395bcf80b7adfa23db77f9ffeaa77 /include/linux/if_vlan.h | |
parent | 6713fc9b8fa33444aa000f0f31076f6a859ccb34 (diff) | |
download | op-kernel-dev-9545b22da647cf6fbbac9c5a48c50fd72d892b11.zip op-kernel-dev-9545b22da647cf6fbbac9c5a48c50fd72d892b11.tar.gz |
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: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_vlan.h')
-rw-r--r-- | include/linux/if_vlan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index 920e445..b9ab677 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h @@ -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; } |