]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: cleanup sk_tx_skb_cache before reuse
authorEric Dumazet <edumazet@google.com>
Fri, 29 Mar 2019 19:46:17 +0000 (12:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 20:16:44 +0000 (13:16 -0700)
commitb13130cd58b95f4ce02a06298b3c721b8c3ff281
treeb6605b6d9b64eaa4fbe4b4a7662bf7211add7cfe
parent272108e8fe3794a833509dbd1a3de0d0b8c1a7f4
tcp: cleanup sk_tx_skb_cache before reuse

TCP stack relies on the fact that a freshly allocated skb
has skb->cb[] and skb_shinfo(skb)->tx_flags cleared.

When recycling tx skb, we must ensure these fields are cleared.

Fixes: 2bcc5e7eb5c6 ("tcp: add one skb cache for tx")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c