Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2023 23:08:21 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7170774e2a16 - main - ifcapnv: cap_bit in ifcap2_nv_bit_names[] is bit, not index
Message-ID:  <202303302308.32UN8L3l018760@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=7170774e2a161aa5cdab439f8f7f9500ed5f1dbc

commit 7170774e2a161aa5cdab439f8f7f9500ed5f1dbc
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-03-30 22:56:52 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-03-30 23:08:15 +0000

    ifcapnv: cap_bit in ifcap2_nv_bit_names[] is bit, not index
    
    Sponsored by:   Nvidia networking
---
 sys/net/if.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/if.c b/sys/net/if.c
index 4b3b7d5b121b..90ed39bb2cff 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2425,7 +2425,7 @@ const struct ifcap_nv_bit_name ifcap_nv_bit_names[] = {
 	CAPNV(TXTLS_RTLMT),
 	{0, NULL}
 };
-#define CAP2NV(x) {.cap_bit = IFCAP2_##x, \
+#define CAP2NV(x) {.cap_bit = IFCAP2_BIT(IFCAP2_##x), \
     .cap_name = __CONCAT(IFCAP2_, __CONCAT(x, _NAME)) }
 const struct ifcap_nv_bit_name ifcap2_nv_bit_names[] = {
 	CAP2NV(RXTLS4),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303302308.32UN8L3l018760>