Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130161
b: refs/heads/master
c: ebad18e
h: refs/heads/master
i:
  130159: e5b0bc7
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 20, 2009
1 parent 56f84da commit a5483d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d1cfd20cc5f785d5345d249d4b6a6f84b29e6a6
refs/heads/master: ebad18e93fbc6bc63ee734edbc0eb38ac6b919c0
7 changes: 7 additions & 0 deletions trunk/net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ static struct sk_buff **ipv6_gro_receive(struct sk_buff **head,
unsigned int nlen;
int flush = 1;
int proto;
__wsum csum;

if (unlikely(!pskb_may_pull(skb, sizeof(*iph))))
goto out;
Expand All @@ -808,6 +809,7 @@ static struct sk_buff **ipv6_gro_receive(struct sk_buff **head,

rcu_read_lock();
proto = ipv6_gso_pull_exthdrs(skb, iph->nexthdr);
iph = ipv6_hdr(skb);
IPV6_GRO_CB(skb)->proto = proto;
ops = rcu_dereference(inet6_protos[proto]);
if (!ops || !ops->gro_receive)
Expand Down Expand Up @@ -839,8 +841,13 @@ static struct sk_buff **ipv6_gro_receive(struct sk_buff **head,

NAPI_GRO_CB(skb)->flush |= flush;

csum = skb->csum;
skb_postpull_rcsum(skb, iph, skb_network_header_len(skb));

pp = ops->gro_receive(head, skb);

skb->csum = csum;

out_unlock:
rcu_read_unlock();

Expand Down

0 comments on commit a5483d7

Please sign in to comment.