diff options
| author | Eric Dumazet <[email protected]> | 2021-10-27 20:19:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-10-28 11:44:39 +0000 |
| commit | 4f2266748eabc42f107ecb6a3cc5b34614b29a12 (patch) | |
| tree | 455495f80c8be4d8c65984ae132f6473446913fe /net/ipv6/tcp_ipv6.c | |
| parent | tcp: factorize ip_summed setting (diff) | |
| download | kernel-4f2266748eabc42f107ecb6a3cc5b34614b29a12.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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); |
