git: 6d988ec3a761 - main - netstat: improve statistic output for sctp
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Aug 2025 13:08:23 UTC
The branch main has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=6d988ec3a76135409730313877b3eb0b8a7517fc
commit 6d988ec3a76135409730313877b3eb0b8a7517fc
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-26 12:57:20 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-08-26 12:57:20 +0000
netstat: improve statistic output for sctp
Provide counters for receive and transmit checksum offloading for
SCTP.
MFC after: 1 week
---
usr.bin/netstat/sctp.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/usr.bin/netstat/sctp.c b/usr.bin/netstat/sctp.c
index c3abac407327..08cfc31c12c9 100644
--- a/usr.bin/netstat/sctp.c
+++ b/usr.bin/netstat/sctp.c
@@ -622,6 +622,10 @@ sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
"{N:/fast path receives all one chunk}\n");
p1a(sctps_recvexpressm, "\t\t{:receives-fast-path-multipart/%ju} "
"{N:/fast path multi-part data}\n");
+ p1a(sctps_recvswcrc, "\t\t{:performed-receive-crc32c-computation/%ju} "
+ "{N:/performed receive crc32c computation}\n");
+ p1a(sctps_recvhwcrc, "\t\t{:performed-receive-crc32c-offloading/%ju} "
+ "{N:/performed receive crc32c offloading}\n");
/*
* output statistics
@@ -648,6 +652,10 @@ sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
"{N:/output AUTH chunk%s}\n");
p1a(sctps_senderrors, "\t\t{:send-errors/%ju} "
"{N:/ip_output error counter}\n");
+ p1a(sctps_sendswcrc, "\t\t{:performed-receive-crc32c-computation/%ju} "
+ "{N:/performed transmit crc32c computation}\n");
+ p1a(sctps_sendhwcrc, "\t\t{:performed-transmit-crc32c-offloading/%ju} "
+ "{N:/performed transmit crc32c offloading}\n");
/*
* PCKDROPREP statistics