aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2025-09-21 16:47:45 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2025-09-21 16:47:45 +0000
commit595acb29a35f36a4fc08b89d3a476f16c1d108b4 (patch)
treee2620cf2ad280ad966444cdaf61790a0bfa3131a
parent2b8bfdcad1f46076eaf40938634538fbcb13cb1c (diff)
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
-rw-r--r--sbin/ifconfig/ifconfig.c1
1 files changed, 1 insertions, 0 deletions
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",