| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] always set westwood rtt (trivial) |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Mon, 8 Mar 2004 10:17:26 -0800 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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 *);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] ibmtr init section usage, Randy.Dunlap |
|---|---|
| Next by Date: | [PATCH 2.4.26-pre2] netdevice.h: add netif_msg_init helper, Don Fry |
| Previous by Thread: | [PATCH 2.4/2.6] IPVS: code tidy up, Wensong Zhang |
| Next by Thread: | Re: [PATCH] always set westwood rtt (trivial), David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |