skbuff: Copy csum instead of csum_start/csum_offset
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2009 22:20:02 +0000 (22:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2009 07:40:43 +0000 (00:40 -0700)
Hi:

skbuff: Copy csum instead of csum_start/csum_offset

It's easier to copy the u32 csum instead of its two u16
constituents.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c

index e47afb20b8948329451505fb6c4081410186574d..47fbbb8827d9da695839a4681f254db97d5e87e8 100644 (file)
@@ -526,8 +526,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
        new->sp                 = secpath_get(old->sp);
 #endif
        memcpy(new->cb, old->cb, sizeof(old->cb));
-       new->csum_start         = old->csum_start;
-       new->csum_offset        = old->csum_offset;
+       new->csum               = old->csum;
        new->local_df           = old->local_df;
        new->pkt_type           = old->pkt_type;
        new->ip_summed          = old->ip_summed;