Skip to content

Commit

Permalink
vlan: Use eth_proto_is_802_3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Duyck authored and David S. Miller committed May 5, 2015
1 parent 6713fc9 commit 9545b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/if_vlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9545b22

Please sign in to comment.