]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
tcp: RTT metrics scaling
authorStephen Hemminger <shemminger@vyatta.com>
Sat, 19 Jul 2008 06:02:15 +0000 (23:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jul 2008 06:02:15 +0000 (23:02 -0700)
commitc1e20f7c8b9ccbafc9ea78f2b406738728ce6b81
tree807dacbfdc6ebfde27ba4d4f46dd1572c4a07cde
parent30ee42be00b7a50929a73cb617f70b1d3219eb69
tcp: RTT metrics scaling

Some of the metrics (RTT, RTTVAR and RTAX_RTO_MIN) are stored in
kernel units (jiffies) and this leaks out through the netlink API to
user space where the units for jiffies are unknown.

This patches changes the kernel to convert to/from milliseconds. This
changes the ABI, but milliseconds seemed like the most natural unit
for these parameters.  Values available via syscall in
/proc/net/rt_cache and netlink will be in milliseconds.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
net/ipv4/tcp_input.c