]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/tcp-reduce-tcp_fastretrans_alert-verbosity.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / queue-4.14 / tcp-reduce-tcp_fastretrans_alert-verbosity.patch
1 From foo@baz Mon 17 Jun 2019 06:56:41 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
5
6 From: Eric Dumazet <edumazet@google.com>
7
8 commit 8ba6ddaaf86c4c6814774e4e4ef158b732bd9f9f upstream.
9
10 With upcoming rb-tree implementation, the checks will trigger
11 more often, and this is expected.
12
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>
17 ---
18 net/ipv4/tcp_input.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21 --- a/net/ipv4/tcp_input.c
22 +++ b/net/ipv4/tcp_input.c
23 @@ -2810,9 +2810,9 @@ static void tcp_fastretrans_alert(struct
24 bool do_lost = is_dupack || ((flag & FLAG_DATA_SACKED) &&
25 (tcp_fackets_out(tp) > tp->reordering));
26
27 - if (WARN_ON(!tp->packets_out && tp->sacked_out))
28 + if (!tp->packets_out && tp->sacked_out)
29 tp->sacked_out = 0;
30 - if (WARN_ON(!tp->sacked_out && tp->fackets_out))
31 + if (!tp->sacked_out && tp->fackets_out)
32 tp->fackets_out = 0;
33
34 /* Now state machine starts.