git: 595acb29a35f - main - ifconfig: Display the IFCAP_HWSTATS capability without netlink

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Sun, 21 Sep 2025 16:50:17 UTC
The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=595acb29a35f36a4fc08b89d3a476f16c1d108b4

commit 595acb29a35f36a4fc08b89d3a476f16c1d108b4
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-09-21 16:47:45 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-09-21 16:47:45 +0000

    ifconfig: Display the IFCAP_HWSTATS capability without netlink
    
    This follows the commit 4cdc1f5421c5, which introduces the IFCAP_HWSTATS
    capability.
    
    Fixes:  4cdc1f5421c5 There are some high performance NICs that count statistics in hardware
    MFC after:      3 days
---
 sbin/ifconfig/ifconfig.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 41d2f4603983..9aeb4a09ef49 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1663,6 +1663,7 @@ static const char *IFCAPBITS[] = {
 	[20] = "NETMAP",
 	[21] = "RXCSUM_IPV6",
 	[22] = "TXCSUM_IPV6",
+	[23] = "HWSTATS",
 	[24] = "TXRTLMT",
 	[25] = "HWRXTSTMP",
 	[26] = "MEXTPG",