git: 03d636e4bf57 - stable/13 - tcp: reserve tcp_info counters for AccECN
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Jan 2024 19:25:31 UTC
The branch stable/13 has been updated by marius:
URL: https://cgit.FreeBSD.org/src/commit/?id=03d636e4bf574775290934ef31e7a00b0eb52603
commit 03d636e4bf574775290934ef31e7a00b0eb52603
Author: Richard Scheffenegger <rscheff@FreeBSD.org>
AuthorDate: 2022-11-04 09:18:41 +0000
Commit: Marius Strobl <marius@FreeBSD.org>
CommitDate: 2024-01-05 22:48:34 +0000
tcp: reserve tcp_info counters for AccECN
Marking all new fields unused (__xxx).
No functional change.
Reviewed By: tuexen, rrs, #transport
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D37016
(cherry picked from commit 3708c3d370f26af0841cd3e97bf569d39c42953b)
---
sys/netinet/tcp.h | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index febd96d47efe..16307161e6ac 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -388,8 +388,18 @@ struct tcp_info {
u_int32_t tcpi_rcv_ooopack; /* Out-of-order packets */
u_int32_t tcpi_snd_zerowin; /* Zero-sized windows sent */
+ /* Accurate ECN counters. */
+ u_int32_t __tcpi_delivered_ce;
+ u_int32_t __tcpi_received_ce; /* # of CE marks received */
+ u_int32_t __tcpi_delivered_e1_bytes;
+ u_int32_t __tcpi_delivered_e0_bytes;
+ u_int32_t __tcpi_delivered_ce_bytes;
+ u_int32_t __tcpi_received_e1_bytes;
+ u_int32_t __tcpi_received_e0_bytes;
+ u_int32_t __tcpi_received_ce_bytes;
+
/* Padding to grow without breaking ABI. */
- u_int32_t __tcpi_pad[26]; /* Padding. */
+ u_int32_t __tcpi_pad[18]; /* Padding. */
};
/*