1 From foo@baz Mon 17 Jun 2019 06:57:32 PM CEST
2 From: Eric Dumazet <edumazet@google.com>
3 Date: Thu, 5 Oct 2017 22:21:25 -0700
4 Subject: tcp: reduce tcp_fastretrans_alert() verbosity
6 From: Eric Dumazet <edumazet@google.com>
8 commit 8ba6ddaaf86c4c6814774e4e4ef158b732bd9f9f upstream.
10 With upcoming rb-tree implementation, the checks will trigger
11 more often, and this is expected.
13 Signed-off-by: Eric Dumazet <edumazet@google.com>
14 Signed-off-by: David S. Miller <davem@davemloft.net>
15 Cc: Amit Shah <amit@infradead.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 net/ipv4/tcp_input.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
21 --- a/net/ipv4/tcp_input.c
22 +++ b/net/ipv4/tcp_input.c
23 @@ -2837,9 +2837,9 @@ static void tcp_fastretrans_alert(struct
24 bool do_lost = is_dupack || ((flag & FLAG_DATA_SACKED) &&
25 (tcp_fackets_out(tp) > tp->reordering));
27 - if (WARN_ON(!tp->packets_out && tp->sacked_out))
28 + if (!tp->packets_out && tp->sacked_out)
30 - if (WARN_ON(!tp->sacked_out && tp->fackets_out))
31 + if (!tp->sacked_out && tp->fackets_out)
34 /* Now state machine starts.