git: bb2287ec1b01 - stable/14 - netstat: improve statistic output for sctp
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 22:26:55 UTC
The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=bb2287ec1b0170e0f52a13c44d5571dbcfd6fff0 commit bb2287ec1b0170e0f52a13c44d5571dbcfd6fff0 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2025-08-26 12:57:20 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2025-09-05 22:26:39 +0000 netstat: improve statistic output for sctp Provide counters for receive and transmit checksum offloading for SCTP. (cherry picked from commit 6d988ec3a76135409730313877b3eb0b8a7517fc) --- 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 09aea6cbf46d..87573929010c 100644 --- a/usr.bin/netstat/sctp.c +++ b/usr.bin/netstat/sctp.c @@ -630,6 +630,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 @@ -656,6 +660,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