[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1314229310-8074-1-git-send-email-hagen@jauu.net>
Date: Thu, 25 Aug 2011 01:41:50 +0200
From: Hagen Paul Pfeifer <hagen@...u.net>
To: netdev@...r.kernel.org
Cc: eric.dumazet@...il.com, Hagen Paul Pfeifer <hagen@...u.net>
Subject: [PATCH] tcp: bound RTO to minimum
Check if calculated RTO is less then TCP_RTO_MIN. If this is true we
adjust the value to TCP_RTO_MIN.
Signed-off-by: Hagen Paul Pfeifer <hagen@...u.net>
---
include/net/tcp.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 149a415..9b5f4bf 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -520,6 +520,8 @@ static inline void tcp_bound_rto(const struct sock *sk)
{
if (inet_csk(sk)->icsk_rto > TCP_RTO_MAX)
inet_csk(sk)->icsk_rto = TCP_RTO_MAX;
+ else if (inet_csk(sk)->icsk_rto < TCP_RTO_MIN)
+ inet_csk(sk)->icsk_rto = TCP_RTO_MIN;
}
static inline u32 __tcp_set_rto(const struct tcp_sock *tp)
--
1.7.4.1.57.g0466.dirty
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists