From nobody Tue May 24 20:59:41 2022 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 30EB91B4F2E0; Tue, 24 May 2022 20:59:42 +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 4L765V0qgnz4jjN; Tue, 24 May 2022 20:59:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653425982; 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=Y/Rn5dtOVg9j93txfrlZlbSiVwN/nDkfJc4Vd20p5s8=; b=VQODqgBr8UVL5U0//zx/Kw6YHMcPRV/rBL9UafQqzkZzPBmYTP6riIHmGRnh4LdgpQwQkw JsPii3AI97GT5pocxTFpLlwzCKlzr2VNWDN07qYin+sD/y7mLdsWFnUPsyV1f2sw3yM9UQ mgLIz12w2nbbSWyBqVE20GtHRrVi89hMulG8IgWXm3ISF4VpPyT+j8VIGhhi5m4icxqx6t DY1vleveb84pPoZ0dSj0lRDocBuz1SZRAMaguvjk64WhW+lqv/dd2tjv/3shzX3J/uLrNs v6M8EldF7RSEj1vQYBxup10O3nCkfc30cnmVKj8THWGQbv6Z+WmouHvXih2JVA== 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 F0E3737D5; Tue, 24 May 2022 20:59:41 +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 24OKxfcm036500; Tue, 24 May 2022 20:59:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24OKxfqA036499; Tue, 24 May 2022 20:59:41 GMT (envelope-from git) Date: Tue, 24 May 2022 20:59:41 GMT Message-Id: <202205242059.24OKxfqA036499@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: b96549f057c0 - main - struct ifnet: add if_capabilities2 and if_capenable2 bitmasks 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: b96549f057c0b7119f1c65b1bb2bfdf9e0d4b2d4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653425982; 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=Y/Rn5dtOVg9j93txfrlZlbSiVwN/nDkfJc4Vd20p5s8=; b=w5AcyLJkOFWY/QBdRZYJroQSGkqGa6CkNKSivNvz6hxj/FRV7jbjScwl3zqJR7YCeNCjV3 ke697frmQjDiQsEee7BEdibVURbkVC3EA+WWfsFKeookI4wvlV4WoWyz6eRnAnld6Gysfh IPrexvH/JukhfcyY+aAsUmfOLhnEnJM3jiYiLjq2SnI8HCyWpoNoAdN6fgM3s4lYHli9Pk DclY6Dy5yL7a/wmghiB8txBbMh+j7zbWwO9YrZkBFcI3elhmZt37i5yrHVSWb3/hrFNtAC ATiF1mDPKPLRyPeaT57KNy/07t4g0N9ALC08u3FtBXTHEXtLx3cmd2ttjWFeow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653425982; a=rsa-sha256; cv=none; b=tZpeO/Q4azVjZM2A2booDXRA7AWPoMSnEivlj1RfgEDoFWFmiQjTboFQWyRpKpWPkIHZZZ Fuc8iJNQ7VlLASdz1OCOErWlnZFdHjBLJkppwJkC478804+GZIquLyYD5SkvyVW9twVhAH vTF/Ir5FK1hLafswkx57gkHdMDYtg6ELeod9EVw0h0qhlFIanj7wcKMe16WLH3Kv6Yyw09 MXzZAL/VQLxkAGZLUKEWKdXa6yewFrDTPtBSptFHRXDk3X9/sllrzjClZ44+oBCqBwXPmZ NZlMyk5Gpw+jh7kiyPNNQoamGzuiAAqDKKHqFss24aS5Ye+fnBMnW01JlcTGrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b96549f057c0b7119f1c65b1bb2bfdf9e0d4b2d4 commit b96549f057c0b7119f1c65b1bb2bfdf9e0d4b2d4 Author: Konstantin Belousov AuthorDate: 2022-04-11 22:35:53 +0000 Commit: Konstantin Belousov CommitDate: 2022-05-24 20:59:32 +0000 struct ifnet: add if_capabilities2 and if_capenable2 bitmasks We are running out of bits in if_capabilities. Suggested by: jhb Reviewed by: hselasky, jhb, kp (previous version) Sponsored by: NVIDIA Networking MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D32551 --- sys/net/if_var.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 2c09795c6b36..4f138f0368c0 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -342,7 +342,9 @@ struct ifnet { int if_flags; /* up/down, broadcast, etc. */ int if_drv_flags; /* driver-managed status flags */ int if_capabilities; /* interface features & capabilities */ + int if_capabilities2; /* part 2 */ int if_capenable; /* enabled features & capabilities */ + int if_capenable2; /* part 2 */ void *if_linkmib; /* link-type-specific MIB data */ size_t if_linkmiblen; /* length of above data */ u_int if_refcount; /* reference count */