]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add send queue size stat in SCM_TIMESTAMPING_OPT_STATS
authorPriyaranjan Jha <priyarjha@google.com>
Sun, 4 Mar 2018 18:38:35 +0000 (10:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 15:40:48 +0000 (10:40 -0500)
commit87ecc95d81d951b0984f2eb9c5c118cb68d0dce8
tree99b6ba9c267bbcf72242262d1888d39d7e91a391
parent200066a5bdcc2d4527562ee3760d405b6ec5b5d5
tcp: add send queue size stat in SCM_TIMESTAMPING_OPT_STATS

This patch adds TCP_NLA_SENDQ_SIZE stat into SCM_TIMESTAMPING_OPT_STATS.
It reports no. of bytes present in send queue, when timestamp is
generated.

Signed-off-by: Priyaranjan Jha <priyarjha@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tcp.h
net/ipv4/tcp.c