diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-04-27 08:44:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-27 08:44:45 -0400 |
commit | 36e7b1b8dac1a785abca3a121b6b0b79f1a8d7df (patch) | |
tree | cdde7191a6e5d78bf9603983d5a71ec99fd5385b /net/ipv6 | |
parent | edbd9e30306067c3a45c035eb95a6f49daaa2337 (diff) |
gro: Fix COMPLETE checksum handling
On a brand new GRO skb, we cannot call ip_hdr since the header
may lie in the non-linear area. This patch adds the helper
skb_gro_network_header to handle this.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 4b5aa1854260..d9dd94b6bf66 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -943,7 +943,7 @@ static int tcp_v6_gso_send_check(struct sk_buff *skb) | |||
943 | 943 | ||
944 | struct sk_buff **tcp6_gro_receive(struct sk_buff **head, struct sk_buff *skb) | 944 | struct sk_buff **tcp6_gro_receive(struct sk_buff **head, struct sk_buff *skb) |
945 | { | 945 | { |
946 | struct ipv6hdr *iph = ipv6_hdr(skb); | 946 | struct ipv6hdr *iph = skb_gro_network_header(skb); |
947 | 947 | ||
948 | switch (skb->ip_summed) { | 948 | switch (skb->ip_summed) { |
949 | case CHECKSUM_COMPLETE: | 949 | case CHECKSUM_COMPLETE: |