diff options
author | Eric Dumazet | 2021-10-27 13:19:22 -0700 |
---|---|---|
committer | David S. Miller | 2021-10-28 12:44:39 +0100 |
commit | 4f2266748eabc42f107ecb6a3cc5b34614b29a12 (patch) | |
tree | 455495f80c8be4d8c65984ae132f6473446913fe /net/ipv4/tcp_output.c | |
parent | a52fe46ef160b4101b8d14209729f49a71388b52 (diff) |
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/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 7ecf35d0f847..5664355b0d09 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2398,7 +2398,6 @@ static int tcp_mtu_probe(struct sock *sk) TCP_SKB_CB(nskb)->end_seq = TCP_SKB_CB(skb)->seq + probe_size; TCP_SKB_CB(nskb)->tcp_flags = TCPHDR_ACK; TCP_SKB_CB(nskb)->sacked = 0; - nskb->csum = 0; tcp_insert_write_queue_before(nskb, skb, sk); tcp_highest_sack_replace(sk, skb, nskb); |