tcp: add bytes not sent to SCM_TIMESTAMPING_OPT_STATS
authorYousuk Seung <ysseung@google.com>
Mon, 9 Mar 2020 20:16:40 +0000 (13:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 00:56:33 +0000 (17:56 -0700)
commite08ab0b377a1489760533424437c5f4be7f484a4
tree1094b050222d950e2d2dc8898460010ea6a424aa
parent34a568a244bef287de2ff9a30c2ed369fb64dbfd
tcp: add bytes not sent to SCM_TIMESTAMPING_OPT_STATS

Add TCP_NLA_BYTES_NOTSENT to SCM_TIMESTAMPING_OPT_STATS that reports
bytes in the write queue but not sent. This is the same metric as
what is exported with tcp_info.tcpi_notsent_bytes.

Signed-off-by: Yousuk Seung <ysseung@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tcp.h
net/ipv4/tcp.c