Skip to contentSkip to conversation

tcp_cubic: fix train length comparision

PATCH In review Sangtae Ha 1 participant 1 message Mar 14, 2011

Subsystems (3)
lore
Share & tools
lore

Sangtae Ha

author
#0 lore raw

PATCH 1/3 tcp_cubic: fix train length comparision

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.

---
 net/ipv4/tcp_cubic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv4/tcp_cubic.c +1 -1
index 91ef5e6..ab9f888 100644
@@ -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;
 		}
 
Signature · 1 line
1.7.0.4