git: 0143af8499ca - main - Revert "ifconfig: Display the IFCAP_NV capability without netlink"

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 22 Sep 2025 04:57:56 UTC
The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=0143af8499cacfe5787ad3902a714bbdab4c8b28

commit 0143af8499cacfe5787ad3902a714bbdab4c8b28
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-09-22 04:45:48 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-09-22 04:51:03 +0000

    Revert "ifconfig: Display the IFCAP_NV capability without netlink"
    
    The display of IFCAP_NV is handled by SIOCGIFCAPNV ioctl. The kernel
    composes a nvlist of capabilities and the userland unpack them and
    display. So this "NV" in IFCAPBITS is meaningless but rather misleading.
    
    This reverts commit 0c1684dd456e3df306b359b04e61f9f2048d9ff2.
---
 sbin/ifconfig/ifconfig.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index d4c8cbd29d18..9aeb4a09ef49 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1658,7 +1658,6 @@ static const char *IFCAPBITS[] = {
 	[14] = "TOE4",
 	[15] = "TOE6",
 	[16] = "VLAN_HWFILTER",
-	[17] = "NV",
 	[18] = "VLAN_HWTSO",
 	[19] = "LINKSTATE",
 	[20] = "NETMAP",