For receive-heavy cases on the server-side, we want to track the connection quality for individual client IPs. This counter, similar to the existing system-wide TCPOFOQueue counter in /proc/net/netstat, tracks out-of-order packet reception. By providing this counter in TCP_INFO, it will allow understanding to what degree receive-heavy sockets are experiencing out-of-order delivery and packet drops indicating congestion. Please note that this is similar to the counter in NetBSD TCP_INFO, and has the same name. Also note that we avoid increasing the size of the tcp_sock struct by taking advantage of a hole.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -354,6 +354,8 @@ struct tcp_sock { · 353 unmodified lines | |||
| 354 | #define BPF_SOCK_OPS_TEST_FLAG(TP, ARG) 0 | 354 | #define BPF_SOCK_OPS_TEST_FLAG(TP, ARG) 0 |
| 355 | #endif | 355 | #endif |
| 356 | 356 | ||
| 357 | u32 rcv_ooopack; /* Received out-of-order packets, for tcpinfo */ | ||
| 358 | |||
| 357 | /* Receiver side RTT estimation */ | 359 | /* Receiver side RTT estimation */ |
| 358 | u32 rcv_rtt_last_tsecr; | 360 | u32 rcv_rtt_last_tsecr; |
| 359 | struct { | 361 | struct { |