diff options
| author | 2021-10-27 13:19:22 -0700 | |
|---|---|---|
| committer | 2021-10-28 12:44:39 +0100 | |
| commit | 4f2266748eabc42f107ecb6a3cc5b34614b29a12 (patch) | |
| tree | 455495f80c8be4d8c65984ae132f6473446913fe /net/ipv4/tcp.c | |
| parent | tcp: factorize ip_summed setting (diff) | |
| download | linux-rng-4f2266748eabc42f107ecb6a3cc5b34614b29a12.tar.xz linux-rng-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/ipv4/tcp.c')
| -rw-r--r-- | net/ipv4/tcp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index c58d448b45a0..88475b640344 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -658,7 +658,6 @@ void tcp_skb_entail(struct sock *sk, struct sk_buff *skb) struct tcp_sock *tp = tcp_sk(sk); struct tcp_skb_cb *tcb = TCP_SKB_CB(skb); - skb->csum = 0; tcb->seq = tcb->end_seq = tp->write_seq; tcb->tcp_flags = TCPHDR_ACK; tcb->sacked = 0; |
