diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-05 22:21:25 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-17 19:52:43 +0200 |
commit | b2ea53195d020f0ddd712c176eb2efcf8981a0bf (patch) | |
tree | b9f30bc611a204aab3623c149d1b43376558c052 /net/ipv4/tcp_input.c | |
parent | a74d0e937a3acaea08ec0a7bfa047b8e0a6b6303 (diff) | |
download | linux-stable-b2ea53195d020f0ddd712c176eb2efcf8981a0bf.tar.gz linux-stable-b2ea53195d020f0ddd712c176eb2efcf8981a0bf.tar.bz2 linux-stable-b2ea53195d020f0ddd712c176eb2efcf8981a0bf.zip |
tcp: reduce tcp_fastretrans_alert() verbosity
commit 8ba6ddaaf86c4c6814774e4e4ef158b732bd9f9f upstream.
With upcoming rb-tree implementation, the checks will trigger
more often, and this is expected.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Amit Shah <amit@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 657d33e2ff6a..03bfec5a388a 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -2810,9 +2810,9 @@ static void tcp_fastretrans_alert(struct sock *sk, const int acked, bool do_lost = is_dupack || ((flag & FLAG_DATA_SACKED) && (tcp_fackets_out(tp) > tp->reordering)); - if (WARN_ON(!tp->packets_out && tp->sacked_out)) + if (!tp->packets_out && tp->sacked_out) tp->sacked_out = 0; - if (WARN_ON(!tp->sacked_out && tp->fackets_out)) + if (!tp->sacked_out && tp->fackets_out) tp->fackets_out = 0; /* Now state machine starts. |