git: 7170774e2a16 - main - ifcapnv: cap_bit in ifcap2_nv_bit_names[] is bit, not index
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Mar 2023 23:08:21 UTC
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),