ifcapnv: cap_bit in ifcap2_nv_bit_names[] is bit, not index

Sponsored by:	Nvidia networking
This commit is contained in:
Konstantin Belousov 2023-03-31 01:56:52 +03:00
parent 512c553671
commit 7170774e2a

View File

@ -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),