login
Header Space

 
 

[PATCHv2 net-2.6 4/4] [TCP]: Don't allow FRTO to take place while MTU is being probed

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <netdev@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Rafael J. Wysocki <rjw@...>, Robin H. Johnson <robbat2@...>, Georgi Chorbadzhiyski <gf@...>, Soeren Sonnenburg <kernel@...>, Denys Fedoryshchenko <denys@...>, Alessandro Suardi <alessandro.suardi@...>, Ilpo J <ilpo.jarvinen@...>
Date: Monday, April 7, 2008 - 7:55 am

MTU probe can cause some remedies for FRTO because the normal
packet ordering may be violated allowing FRTO to make a wrong
decision (it might not be that serious threat for anything
though). Thus it's safer to not run FRTO while MTU probe is
underway.

It seems that the basic FRTO variant should also look for an
skb at probe_seq.start to check if that's retransmitted one
but I didn't implement it now (plain seqno in window check
isn't robust against wraparounds).

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 net/ipv4/tcp_input.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index a2a06d6..2b09a89 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -1691,11 +1691,16 @@ static inline void tcp_reset_reno_sack(struct tcp_sock *tp)
 int tcp_use_frto(struct sock *sk)
 {
 	const struct tcp_sock *tp = tcp_sk(sk);
+	const struct inet_connection_sock *icsk = inet_csk(sk);
 	struct sk_buff *skb;
 
 	if (!sysctl_tcp_frto)
 		return 0;
 
+	/* MTU probe and F-RTO won't really play nicely along currently */
+	if (icsk->icsk_mtup.probe_size)
+		return 0;
+
 	if (IsSackFrto())
 		return 1;
 
-- 
1.5.2.2

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv2 net-2.6 0/4 (was 0/3)]: TCP fixes, Ilpo Järvinen, (Mon Apr 7, 7:55 am)
Re: [PATCHv2 net-2.6 0/4 (was 0/3)]: TCP fixes, Ilpo Järvinen, (Mon Apr 7, 5:59 pm)
Re: [PATCHv2 net-2.6 0/4 (was 0/3)]: TCP fixes, Soeren Sonnenburg, (Wed Apr 9, 1:56 am)
Re: [PATCHv2 net-2.6 0/4 (was 0/3)]: TCP fixes, David Miller, (Tue Apr 8, 5:40 am)
[PATCHv2 net-2.6 4/4] [TCP]: Don't allow FRTO to take place ..., Ilpo Järvinen, (Mon Apr 7, 7:55 am)
speck-geostationary