summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrancis Yan <francisyyan@gmail.com>2016-11-27 23:07:17 -0800
committerDavid S. Miller <davem@davemloft.net>2016-11-30 10:04:25 -0500
commitefd90174167530c67a54273fd5d8369c87f9bd32 (patch)
tree8d5a14b3b4c63b8b919e815610f3a90c3c12e4aa /include
parentb0f71bd3e190df827d25d7f19bf09037567f14b7 (diff)
downloadop-kernel-dev-efd90174167530c67a54273fd5d8369c87f9bd32.zip
op-kernel-dev-efd90174167530c67a54273fd5d8369c87f9bd32.tar.gz
tcp: export sender limits chronographs to TCP_INFO
This patch exports all the sender chronograph measurements collected in the previous patches to TCP_INFO interface. Note that busy time exported includes all the other sending limits (rwnd-limited, sndbuf-limited). Internally the time unit is jiffy but externally the measurements are in microseconds for future extensions. Signed-off-by: Francis Yan <francisyyan@gmail.com> Signed-off-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/tcp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h
index 73ac0db..2863b66 100644
--- a/include/uapi/linux/tcp.h
+++ b/include/uapi/linux/tcp.h
@@ -214,6 +214,10 @@ struct tcp_info {
__u32 tcpi_data_segs_out; /* RFC4898 tcpEStatsDataSegsOut */
__u64 tcpi_delivery_rate;
+
+ __u64 tcpi_busy_time; /* Time (usec) busy sending data */
+ __u64 tcpi_rwnd_limited; /* Time (usec) limited by receive window */
+ __u64 tcpi_sndbuf_limited; /* Time (usec) limited by send buffer */
};
/* for TCP_MD5SIG socket option */
OpenPOWER on IntegriCloud