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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 3871bf69a386..379c993ff421 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2502,8 +2502,8 @@ static inline void ____napi_schedule(struct softnet_data *sd,
2502__u32 __skb_get_rxhash(struct sk_buff *skb) 2502__u32 __skb_get_rxhash(struct sk_buff *skb)
2503{ 2503{
2504 int nhoff, hash = 0, poff; 2504 int nhoff, hash = 0, poff;
2505 struct ipv6hdr *ip6; 2505 const struct ipv6hdr *ip6;
2506 struct iphdr *ip; 2506 const struct iphdr *ip;
2507 u8 ip_proto; 2507 u8 ip_proto;
2508 u32 addr1, addr2, ihl; 2508 u32 addr1, addr2, ihl;
2509 union { 2509 union {
@@ -2518,7 +2518,7 @@ __u32 __skb_get_rxhash(struct sk_buff *skb)
2518 if (!pskb_may_pull(skb, sizeof(*ip) + nhoff)) 2518 if (!pskb_may_pull(skb, sizeof(*ip) + nhoff))
2519 goto done; 2519 goto done;
2520 2520
2521 ip = (struct iphdr *) (skb->data + nhoff); 2521 ip = (const struct iphdr *) (skb->data + nhoff);
2522 if (ip->frag_off & htons(IP_MF | IP_OFFSET)) 2522 if (ip->frag_off & htons(IP_MF | IP_OFFSET))
2523 ip_proto = 0; 2523 ip_proto = 0;
2524 else 2524 else
@@ -2531,7 +2531,7 @@ __u32 __skb_get_rxhash(struct sk_buff *skb)
2531 if (!pskb_may_pull(skb, sizeof(*ip6) + nhoff)) 2531 if (!pskb_may_pull(skb, sizeof(*ip6) + nhoff))
2532 goto done; 2532 goto done;
2533 2533
2534 ip6 = (struct ipv6hdr *) (skb->data + nhoff); 2534 ip6 = (const struct ipv6hdr *) (skb->data + nhoff);
2535 ip_proto = ip6->nexthdr; 2535 ip_proto = ip6->nexthdr;
2536 addr1 = (__force u32) ip6->saddr.s6_addr32[3]; 2536 addr1 = (__force u32) ip6->saddr.s6_addr32[3];
2537 addr2 = (__force u32) ip6->daddr.s6_addr32[3]; 2537 addr2 = (__force u32) ip6->daddr.s6_addr32[3];