]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add tcpi_min_rtt and tcpi_notsent_bytes to tcp_info
authorEric Dumazet <edumazet@google.com>
Fri, 12 Feb 2016 06:02:53 +0000 (22:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 01:27:35 +0000 (20:27 -0500)
commit09a9fdc03ba1861934a35b1a802e11bb0280fa47
tree0b7f6c9c5660fbdf2e0e78112780ce1a16eff7a3
parenta0b4f5602cc5a655b63e23db236555f0f552b829
tcp: add tcpi_min_rtt and tcpi_notsent_bytes to tcp_info

tcpi_min_rtt reports the minimal rtt observed by TCP stack for the flow,
in usec unit. Might be ~0U if not yet known.

tcpi_notsent_bytes reports the amount of bytes in the write queue that
were not yet sent.

This is done in a single patch to not add a temporary 32bit padding hole
in tcp_info.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tcp.h
net/ipv4/tcp.c