diff options
author | 2021-10-27 13:19:22 -0700 | |
---|---|---|
committer | 2021-10-28 12:44:39 +0100 | |
commit | 4f2266748eabc42f107ecb6a3cc5b34614b29a12 (patch) | |
tree | 455495f80c8be4d8c65984ae132f6473446913fe /net/ipv6/tcp_ipv6.c | |
parent | tcp: factorize ip_summed setting (diff) | |
download | linux-4f2266748eabc42f107ecb6a3cc5b34614b29a12.tar.gz linux-4f2266748eabc42f107ecb6a3cc5b34614b29a12.tar.bz2 linux-4f2266748eabc42f107ecb6a3cc5b34614b29a12.zip |
tcp: do not clear skb->csum if already zero
Freshly allocated skbs have their csum field cleared already.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index c678e778c1fb..2cc9b0e53ad1 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -969,7 +969,6 @@ static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32 fl6.flowlabel = label; buff->ip_summed = CHECKSUM_PARTIAL; - buff->csum = 0; __tcp_v6_send_check(buff, &fl6.saddr, &fl6.daddr); |