diff options
author | Yuchung Cheng | 2017-01-28 01:24:38 +0100 |
---|---|---|
committer | David S. Miller | 2017-01-30 01:17:23 +0100 |
commit | 7e98102f489775d8c000884fca8a0d995ea688a9 (patch) | |
tree | 40a40dc7f485407ab82f3851f8a50ba8337525c6 /net/ipv4/tcp_output.c | |
parent | Merge branch 'qcom-emac-misc' (diff) | |
download | kernel-qcow2-linux-7e98102f489775d8c000884fca8a0d995ea688a9.tar.gz kernel-qcow2-linux-7e98102f489775d8c000884fca8a0d995ea688a9.tar.xz kernel-qcow2-linux-7e98102f489775d8c000884fca8a0d995ea688a9.zip |
tcp: record pkts sent and retransmistted
Add two stats in SCM_TIMESTAMPING_OPT_STATS:
TCP_NLA_DATA_SEGS_OUT: total data packets sent including retransmission
TCP_NLA_TOTAL_RETRANS: total data packets retransmitted
The names are picked to be consistent with corresponding fields in
TCP_INFO. This allows applications that are using the timestamping
API to measure latency stats to also retrive retransmission rate
of application write.
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions