* [PATCH net-next] tcp: update reordering first before detecting loss
@ 2015-04-29 18:28 Yuchung Cheng
2015-04-29 22:13 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yuchung Cheng @ 2015-04-29 18:28 UTC (permalink / raw)
To: davem; +Cc: netdev, Yuchung Cheng, Nandita Dukkipati, Neal Cardwell
tcp_mark_lost_retrans is not used when FACK is disabled. Since
tcp_update_reordering may disable FACK, it should be called first
before tcp_mark_lost_retrans.
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
---
net/ipv4/tcp_input.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 3a4d9b34..5136247 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -1820,14 +1820,12 @@ advance_sp:
for (j = 0; j < used_sacks; j++)
tp->recv_sack_cache[i++] = sp[j];
- tcp_mark_lost_retrans(sk);
-
- tcp_verify_left_out(tp);
-
if ((state.reord < tp->fackets_out) &&
((inet_csk(sk)->icsk_ca_state != TCP_CA_Loss) || tp->undo_marker))
tcp_update_reordering(sk, tp->fackets_out - state.reord, 0);
+ tcp_mark_lost_retrans(sk);
+ tcp_verify_left_out(tp);
out:
#if FASTRETRANS_DEBUG > 0
--
2.2.0.rc0.207.ga3a616c
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] tcp: update reordering first before detecting loss
2015-04-29 18:28 [PATCH net-next] tcp: update reordering first before detecting loss Yuchung Cheng
@ 2015-04-29 22:13 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-04-29 22:13 UTC (permalink / raw)
To: ycheng; +Cc: netdev, nanditad, ncardwell
From: Yuchung Cheng <ycheng@google.com>
Date: Wed, 29 Apr 2015 11:28:30 -0700
> tcp_mark_lost_retrans is not used when FACK is disabled. Since
> tcp_update_reordering may disable FACK, it should be called first
> before tcp_mark_lost_retrans.
>
> Signed-off-by: Yuchung Cheng <ycheng@google.com>
> Signed-off-by: Nandita Dukkipati <nanditad@google.com>
> Signed-off-by: Neal Cardwell <ncardwell@google.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-29 22:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 18:28 [PATCH net-next] tcp: update reordering first before detecting loss Yuchung Cheng
2015-04-29 22:13 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).