diff options
author | Eric Dumazet <edumazet@google.com> | 2021-10-27 13:19:23 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-28 12:44:39 +0100 |
commit | 8b7d8c2bdb7653605aaa1770b882e79b25ba4002 (patch) | |
tree | 07320be5053af4596e9e59a9099f4b6aa36c1385 /net/ipv4/tcp.c | |
parent | 4f2266748eabc42f107ecb6a3cc5b34614b29a12 (diff) |
tcp: do not clear TCP_SKB_CB(skb)->sacked if already zero
Freshly allocated skbs have zero in skb->cb[] 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 88475b640344..7a7b9aa8f19a 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -660,7 +660,6 @@ void tcp_skb_entail(struct sock *sk, struct sk_buff *skb) tcb->seq = tcb->end_seq = tp->write_seq; tcb->tcp_flags = TCPHDR_ACK; - tcb->sacked = 0; __skb_header_release(skb); tcp_add_write_queue_tail(sk, skb); sk_wmem_queued_add(sk, skb->truesize); |