Thread (7 messages) flat view 7 messages, 5 authors, 2012-07-19

Re: resurrecting tcphealth

From: Christoph Paasch <hidden>
Date: 2012-07-16 15:33:07
Also in: lkml

On Monday 16 July 2012 17:12:26 Piotr Sawuk wrote:
+               seq_printf(seq, "%d: %-21pI4:%u %-21pI4:%u "
+                               "%8u %8lu %8lu %8lu %8lu%n",
+                               st->num,
+                               &inet->inet_rcv_saddr,
+                               ntohs(inet->inet_sport),
+                               &inet->inet_daddr,
+                               ntohs(inet->inet_dport),
+                               jiffies_to_msecs(tp->srtt),
This still doesn't gives you the correct RTT.
srtt is in jiffies * 8.

You should do jiffies_to_msecs(tp->srtt) >> 3.

The RTT is already exposed by tcp_info anyway... (see tcp_get_info() - where 
you also see the bitshift)


Christoph

-- 
IP Networking Lab --- http://inl.info.ucl.ac.be
MultiPath TCP in the Linux Kernel --- http://mptcp.info.ucl.ac.be
Université Catholique de Louvain
--
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help