tcp: add data bytes retransmitted stats
authorWei Wang <weiwan@google.com>
Wed, 1 Aug 2018 00:46:22 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:56:10 +0000 (09:56 -0700)
commitfb31c9b9f6c85b1bad569ecedbde78d9e37cd87b
tree7568903b4ab7b5784169b51d342ffb28ec6e31e2
parentba113c3aa79a7f941ac162d05a3620bdc985c58d
tcp: add data bytes retransmitted stats

Introduce a new TCP stat to record the number of bytes retransmitted
(RFC4898 tcpEStatsPerfOctetsRetrans) 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