From 839d02c9e3542d983f6680da9cf8a9fe8d37dc91 Mon Sep 17 00:00:00 2001 From: Zhenlei Huang Date: Mon, 22 Sep 2025 00:47:45 +0800 Subject: [PATCH] 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 (cherry picked from commit 595acb29a35f36a4fc08b89d3a476f16c1d108b4) (cherry picked from commit 6bcce275a5a9e10f8e5b990f8cfa2166aa49875a) --- sbin/ifconfig/ifconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 037f360d1b7..ccc783c64ff 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1672,6 +1672,7 @@ static const char *IFCAPBITS[] = { [20] = "NETMAP", [21] = "RXCSUM_IPV6", [22] = "TXCSUM_IPV6", + [23] = "HWSTATS", [24] = "TXRTLMT", [25] = "HWRXTSTMP", [26] = "MEXTPG",