diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-04-08 01:33:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-08 01:33:57 -0400 |
commit | 6adb4f733e9996b4fd68a6db50dd51bd2463ccac (patch) | |
tree | 2ed50e47632902fe93f601d79fbb0ee8cb43c11c /net/ipv4 | |
parent | 882bebaaca4bb1484078d44ef011f918c0e1e14e (diff) |
[TCP]: Don't allow FRTO to take place while MTU is being probed
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | 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 b4812c3cbbcf..5119856017ab 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) | |||
1691 | int tcp_use_frto(struct sock *sk) | 1691 | int tcp_use_frto(struct sock *sk) |
1692 | { | 1692 | { |
1693 | const struct tcp_sock *tp = tcp_sk(sk); | 1693 | const struct tcp_sock *tp = tcp_sk(sk); |
1694 | const struct inet_connection_sock *icsk = inet_csk(sk); | ||
1694 | struct sk_buff *skb; | 1695 | struct sk_buff *skb; |
1695 | 1696 | ||
1696 | if (!sysctl_tcp_frto) | 1697 | if (!sysctl_tcp_frto) |
1697 | return 0; | 1698 | return 0; |
1698 | 1699 | ||
1700 | /* MTU probe and F-RTO won't really play nicely along currently */ | ||
1701 | if (icsk->icsk_mtup.probe_size) | ||
1702 | return 0; | ||
1703 | |||
1699 | if (IsSackFrto()) | 1704 | if (IsSackFrto()) |
1700 | return 1; | 1705 | return 1; |
1701 | 1706 | ||