From nobody Thu Mar 30 23:08:21 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PnfGs3sSxz42Vbp; Thu, 30 Mar 2023 23:08:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PnfGs3MLbz49gQ; Thu, 30 Mar 2023 23:08:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680217701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QDAq5eN9To37fa4ITDb6rLe0Nuo9OKdWQ6Sq4WqR9k8=; b=Ry16FueBCIo0JwgCZniDoAPhBogiUXULbwNdWLx7v2DZ9uCH0b0e+PrfOOgP+lpm80EFmv nZ0l0H+11Y/jTPHgZQAWE88Te/exwvsO95fIDA3V7eGigN4rcHSZyt3MstMpmJL0lhI8V8 i1VunN5rZab615jPnPKrG6xuB+nv8qQA1tLNOJVsxO1vQap1QFw3H65V+PgwFzzQL8vqSJ 47IIsMlDLmD463x+oijXNCKCkOt7sRSnvpZvNeq6+OeRvtt8FkYisvRM0fTl9gEOuJVxsV c+0/wH3G4BfP8tunt7UBnQkorT80ApuI0GGIqwV6ivQJOHyLPrcd1lrSGXbO2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680217701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QDAq5eN9To37fa4ITDb6rLe0Nuo9OKdWQ6Sq4WqR9k8=; b=pCOP0HdHvP97jIUDWBBXwE86pp4CVJOfwsGeAGKQwItsAmeFT9s3IeFrZns3ytrYiwF4BW rItSLbgkS5RuKrGwxmQMRuom2E+/kz8hd5Jtm74rnlJ5fHRpvMrykrp9tTHeyFsasU0D0d ngxOIt5ADCZ8bUfAK6+r9SV3p/NW2pByV7FSK/B7MKNO+nyM+yFwyuZxPKtPoouKW0Is2S jJ76Hg/r+qu4UiP367Y4YrjJrIDPj57B8HKoyWPbVKT9wHMXY9gkZIVn/b9DWf/Q5pZIwb C9LPJXqqZ68AR0uWkQR7U7hBLHgR3TrfFA4vryUYhZH55utDz7mN+Nx38+OHKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680217701; a=rsa-sha256; cv=none; b=SoNoliXJSrxl93XrcObZ7TbGISVii2aHNzxDF+BfLjzjqv/fNE7op3wW96a/prK9b2qOAg Fj3yjVLUK5Ka2VzvPwVGx+GOOqRDvADw4au/D8paYffNwY2JG0B/136Tuvlm7vjs482AEr RVEK5ksO+AJGzJz0QYajSQ9C2goS/VtaOdxeEJJrOywysPcitsnJe3WCpv3EuTgFiEYVNR dDHvTvTKxh0uVShY9k/9UrS3tVbmj5St9DKF0iqzWEymfwyatunSrDyvGkvSkZd4ARVHnI +6aER/YMcC3tePSMghwZeu1/2mJcxesjJUUPUchKyDZXBb3XzwsWENrqJJEMQQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PnfGs2QFdzW9s; Thu, 30 Mar 2023 23:08:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32UN8LRQ018761; Thu, 30 Mar 2023 23:08:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32UN8L3l018760; Thu, 30 Mar 2023 23:08:21 GMT (envelope-from git) Date: Thu, 30 Mar 2023 23:08:21 GMT Message-Id: <202303302308.32UN8L3l018760@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 7170774e2a16 - main - ifcapnv: cap_bit in ifcap2_nv_bit_names[] is bit, not index List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7170774e2a161aa5cdab439f8f7f9500ed5f1dbc Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7170774e2a161aa5cdab439f8f7f9500ed5f1dbc commit 7170774e2a161aa5cdab439f8f7f9500ed5f1dbc Author: Konstantin Belousov AuthorDate: 2023-03-30 22:56:52 +0000 Commit: Konstantin Belousov 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),