projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6713fc9
)
vlan: Use eth_proto_is_802_3
author
Alexander Duyck
<alexander.h.duyck@redhat.com>
Mon, 4 May 2015 21:34:10 +0000
(14:34 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 May 2015 23:24:43 +0000
(19:24 -0400)
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>
include/linux/if_vlan.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/if_vlan.h
b/include/linux/if_vlan.h
index 920e4457ce6eab1541a9322595fe2894559ce16f..b9ab677c0c0ad8cba177409e9ad87c1ed7cc43fc 100644
(file)
--- 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;
}