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>
This commit is contained in:

committed by
David S. Miller

parent
ba113c3aa7
commit
fb31c9b9f6
@@ -333,6 +333,9 @@ struct tcp_sock {
|
||||
* the first SYN. */
|
||||
u32 undo_marker; /* snd_una upon a new recovery episode. */
|
||||
int undo_retrans; /* number of undoable retransmissions. */
|
||||
u64 bytes_retrans; /* RFC4898 tcpEStatsPerfOctetsRetrans
|
||||
* Total data bytes retransmitted
|
||||
*/
|
||||
u32 total_retrans; /* Total retransmits for entire connection */
|
||||
|
||||
u32 urg_seq; /* Seq of received urgent pointer */
|
||||
|
Reference in New Issue
Block a user