summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet2016-02-12 07:02:53 +0100
committerDavid S. Miller2016-02-17 02:27:35 +0100
commitcd9b266095f422267bddbec88f9098b48ea548fc (patch)
tree0b7f6c9c5660fbdf2e0e78112780ce1a16eff7a3 /include/uapi/linux/tcp.h
parentMerge branch 'unified-tunnel-dst-caching' (diff)
downloadkernel-qcow2-linux-cd9b266095f422267bddbec88f9098b48ea548fc.tar.gz
kernel-qcow2-linux-cd9b266095f422267bddbec88f9098b48ea548fc.tar.xz
kernel-qcow2-linux-cd9b266095f422267bddbec88f9098b48ea548fc.zip
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>
Diffstat (limited to 'include/uapi/linux/tcp.h')
-rw-r--r--include/uapi/linux/tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h
index 65a77b071e22..fe95446e9abf 100644
--- a/include/uapi/linux/tcp.h
+++ b/include/uapi/linux/tcp.h
@@ -196,6 +196,9 @@ struct tcp_info {
__u64 tcpi_bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived */
__u32 tcpi_segs_out; /* RFC4898 tcpEStatsPerfSegsOut */
__u32 tcpi_segs_in; /* RFC4898 tcpEStatsPerfSegsIn */
+
+ __u32 tcpi_notsent_bytes;
+ __u32 tcpi_min_rtt;
};
/* for TCP_MD5SIG socket option */