Skip to content

Commit 8ba6dda

Browse files
Eric Dumazetdavem330
authored andcommitted
tcp: reduce tcp_fastretrans_alert() verbosity
With upcoming rb-tree implementation, the checks will trigger more often, and this is expected. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5e76ee4 commit 8ba6dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv4/tcp_input.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,9 +2804,9 @@ static void tcp_fastretrans_alert(struct sock *sk, const int acked,
28042804
bool do_lost = is_dupack || ((flag & FLAG_DATA_SACKED) &&
28052805
(tcp_fackets_out(tp) > tp->reordering));
28062806

2807-
if (WARN_ON(!tp->packets_out && tp->sacked_out))
2807+
if (!tp->packets_out && tp->sacked_out)
28082808
tp->sacked_out = 0;
2809-
if (WARN_ON(!tp->sacked_out && tp->fackets_out))
2809+
if (!tp->sacked_out && tp->fackets_out)
28102810
tp->fackets_out = 0;
28112811

28122812
/* Now state machine starts.

0 commit comments

Comments
 (0)