tcp: do not clear skb->csum if already zero
authorEric Dumazet <edumazet@google.com>
Wed, 27 Oct 2021 20:19:22 +0000 (13:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:44:39 +0000 (12:44 +0100)
commit4f2266748eabc42f107ecb6a3cc5b34614b29a12
tree455495f80c8be4d8c65984ae132f6473446913fe
parenta52fe46ef160b4101b8d14209729f49a71388b52
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>
net/ipv4/tcp.c
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c