OSDN Git Service

tcp: add data bytes sent stats
authorWei Wang <weiwan@google.com>
Wed, 1 Aug 2018 00:46:21 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:56:10 +0000 (09:56 -0700)
commitba113c3aa79a7f941ac162d05a3620bdc985c58d
tree6ac064d13a2920d19c52998bb91e138916fccae3
parent984988aa72188453f8c8a42dcf94bba1c57e73aa
tcp: add data bytes sent stats

Introduce a new TCP stat to record the number of bytes sent
(RFC4898 tcpEStatsPerfHCDataOctetsOut) and expose it in both tcp_info
(TCP_INFO) and opt_stats (SOF_TIMESTAMPING_OPT_STATS).

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