summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSatoru SATOH <satoru.satoh@gmail.com>2009-05-04 11:11:01 -0700
committerDavid S. Miller <davem@davemloft.net>2009-05-04 11:11:01 -0700
commit0c266898b42fe4e4e2f9edfc9d3474c10f93aa6a (patch)
treed964259d2fdd67f22f005852b1770c40ba4d6474 /net
parent0b2febf38a33d7c40fb7bb4a58c113a1fa33c412 (diff)
downloadlinux-stable-0c266898b42fe4e4e2f9edfc9d3474c10f93aa6a.tar.gz
linux-stable-0c266898b42fe4e4e2f9edfc9d3474c10f93aa6a.tar.bz2
linux-stable-0c266898b42fe4e4e2f9edfc9d3474c10f93aa6a.zip
tcp: Fix tcp_prequeue() to get correct rto_min value
tcp_prequeue() refers to the constant value (TCP_RTO_MIN) regardless of the actual value might be tuned. The following patches fix this and make tcp_prequeue get the actual value returns from tcp_rto_min(). Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_input.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index c96a6bb25430..eec3e6f9956c 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -597,16 +597,6 @@ static void tcp_event_data_recv(struct sock *sk, struct sk_buff *skb)
tcp_grow_window(sk, skb);
}
-static u32 tcp_rto_min(struct sock *sk)
-{
- struct dst_entry *dst = __sk_dst_get(sk);
- u32 rto_min = TCP_RTO_MIN;
-
- if (dst && dst_metric_locked(dst, RTAX_RTO_MIN))
- rto_min = dst_metric_rtt(dst, RTAX_RTO_MIN);
- return rto_min;
-}
-
/* Called to compute a smoothed rtt estimate. The data fed to this
* routine either comes from timestamps, or from segments that were
* known _not_ to have been retransmitted [see Karn/Partridge