]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: refactor tcp_retransmit_timer()
authorEric Dumazet <edumazet@google.com>
Tue, 3 Dec 2019 16:05:52 +0000 (08:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Dec 2019 19:52:38 +0000 (11:52 -0800)
commitece1d6620802c728632b7c1112dcfe72511f1795
tree5cc51447d1d51d8b87151c5706cf819314b7c410
parent3c42b93f45f3feff1ebaa030966a8d9bd3a66f99
tcp: refactor tcp_retransmit_timer()

It appears linux-4.14 stable needs a backport of commit
cec51dcc40fe ("tcp: exit if nothing to retransmit on RTO timeout")

Since tcp_rtx_queue_empty() is not in pre 4.15 kernels,
let's refactor tcp_retransmit_timer() to only use tcp_rtx_queue_head()

I will provide to stable teams the squashed patches.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_timer.c