netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] always set westwood rtt (trivial)
@ 2004-03-08 18:17 Stephen Hemminger
  2004-03-08 20:04 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-03-08 18:17 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

It is faster just to update the rtt even if we never use it.

diff -Nru a/include/net/tcp.h b/include/net/tcp.h
--- a/include/net/tcp.h	Mon Mar  8 10:10:57 2004
+++ b/include/net/tcp.h	Mon Mar  8 10:10:57 2004
@@ -2030,8 +2030,7 @@
 
 static inline void tcp_westwood_update_rtt(struct tcp_opt *tp, __u32 rtt_seq)
 {
-        if (sysctl_tcp_westwood)
-                tp->westwood.rtt = rtt_seq;
+	tp->westwood.rtt = rtt_seq;
 }
 
 void __tcp_westwood_fast_bw(struct sock *, struct sk_buff *);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-08 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-08 18:17 [PATCH] always set westwood rtt (trivial) Stephen Hemminger
2004-03-08 20:04 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).