tcp: add dsack blocks received stats
Introduce a new TCP stat to record the number of DSACK blocks received (RFC4989 tcpEStatsStackDSACKDups) 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
fb31c9b9f6
commit
7e10b6554f
@@ -874,6 +874,7 @@ static void tcp_dsack_seen(struct tcp_sock *tp)
|
||||
{
|
||||
tp->rx_opt.sack_ok |= TCP_DSACK_SEEN;
|
||||
tp->rack.dsack_seen = 1;
|
||||
tp->dsack_dups++;
|
||||
}
|
||||
|
||||
/* It's reordering when higher sequence was delivered (i.e. sacked) before
|
||||
|
Reference in New Issue
Block a user