aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index b1b0c8d4d7df..587f9fb85d73 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3495,11 +3495,11 @@ EXPORT_SYMBOL_GPL(netdev_rx_handler_unregister);
3495static bool skb_pfmemalloc_protocol(struct sk_buff *skb) 3495static bool skb_pfmemalloc_protocol(struct sk_buff *skb)
3496{ 3496{
3497 switch (skb->protocol) { 3497 switch (skb->protocol) {
3498 case __constant_htons(ETH_P_ARP): 3498 case htons(ETH_P_ARP):
3499 case __constant_htons(ETH_P_IP): 3499 case htons(ETH_P_IP):
3500 case __constant_htons(ETH_P_IPV6): 3500 case htons(ETH_P_IPV6):
3501 case __constant_htons(ETH_P_8021Q): 3501 case htons(ETH_P_8021Q):
3502 case __constant_htons(ETH_P_8021AD): 3502 case htons(ETH_P_8021AD):
3503 return true; 3503 return true;
3504 default: 3504 default:
3505 return false; 3505 return false;