From: Herbert Xu Date: Fri, 22 May 2009 22:20:02 +0000 (+0000) Subject: skbuff: Copy csum instead of csum_start/csum_offset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bcb97cace615a9f57fca0b9d788e7d234d7fc95;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git skbuff: Copy csum instead of csum_start/csum_offset 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 Cheers, Signed-off-by: David S. Miller --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index e47afb20b894..47fbbb8827d9 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -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;