]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tcp: add stat of data packet reordering events
authorWei Wang <weiwan@google.com>
Wed, 1 Aug 2018 00:46:24 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:56:10 +0000 (09:56 -0700)
commit7ec65372ca534217b53fd208500cf7aac223a383
tree5debcce08aca141b24d1a5c9875d73cae07f3394
parent7e10b6554ff2ce7f86d5d3eec3af5db8db482caa
tcp: add stat of data packet reordering events

Introduce a new TCP stats to record the number of reordering events seen
and expose it in both tcp_info (TCP_INFO) and opt_stats
(SOF_TIMESTAMPING_OPT_STATS).
Application can use this stats to track the frequency of the reordering
events in addition to the existing reordering stats which tracks the
magnitude of the latest reordering event.

Note: this new stats tracks reordering events triggered by ACKs, which
could often be fewer than the actual number of packets being delivered
out-of-order.

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_input.c
net/ipv4/tcp_recovery.c