]> git.baikalelectronics.ru Git - kernel.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)
commit76f853c90957f5b91f106d299347b0c719a87e0c
tree807dacbfdc6ebfde27ba4d4f46dd1572c4a07cde
parentcb28df2abd07d6201cdefdc12bc974cf6594eec4
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