git: 3708c3d370f2 - main - tcp: reserve tcp_info counters for AccECN
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Nov 2022 09:42:35 UTC
The branch main has been updated by rscheff:
URL: https://cgit.FreeBSD.org/src/commit/?id=3708c3d370f26af0841cd3e97bf569d39c42953b
commit 3708c3d370f26af0841cd3e97bf569d39c42953b
Author: Richard Scheffenegger <rscheff@FreeBSD.org>
AuthorDate: 2022-11-04 09:18:41 +0000
Commit: Richard Scheffenegger <rscheff@FreeBSD.org>
CommitDate: 2022-11-04 09:18:53 +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
---
sys/netinet/tcp.h | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index 6a3603287f5d..7bb2efe5fae0 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -389,8 +389,17 @@ 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_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[19]; /* Padding. */
};
/*