netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] tcp_cubic: fix train length comparision
@ 2011-03-14  0:03 Sangtae Ha
  0 siblings, 0 replies; only message in thread
From: Sangtae Ha @ 2011-03-14  0:03 UTC (permalink / raw)
  To: Lucas Nussbaum
  Cc: Stephen Hemminger, David Miller, Injong Rhee, Bill Fink, netdev,
	Sangtae Ha

HyStart detects the safe exit point when the ACK train length is
larger than the one-way delay. This needs to be applied after
the patches Stephen made to fix clock dependency of HyStart.

Signed-off-by: Sangtae Ha <sangtae.ha@gmail.com>
---
 net/ipv4/tcp_cubic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c
index 91ef5e6..ab9f888 100644
--- a/net/ipv4/tcp_cubic.c
+++ b/net/ipv4/tcp_cubic.c
@@ -356,7 +356,7 @@ static void hystart_update(struct sock *sk, u32 delay)
 		/* first detection parameter - ack-train detection */
 		if ((s32)(now - ca->last_ack) <= hystart_ack_delta) {
 			ca->last_ack = now;
-			if ((s32)(now - ca->round_start) <= ca->delay_min >> 4)
+			if ((s32)(now - ca->round_start) > ca->delay_min >> 4)
 				ca->found |= HYSTART_ACK_TRAIN;
 		}
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-14  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14  0:03 [PATCH 1/3] tcp_cubic: fix train length comparision Sangtae Ha

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).