From nobody Fri Sep 18 23:27:25 2026 X-Original-To: dev-commits-src-all@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 4hmpgl29RFz6t7lt for ; Fri, 18 Sep 2026 23:27:31 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hmpgk6pf9z3LRk for ; Fri, 18 Sep 2026 23:27:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789774051; 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=7SxnIIceQPVmeF1kd2XM2tlySYrfl84ZdD6HMF10Syw=; b=dkK0eLq944DuMbCi79lWCRZyISSbu9X+ysBbETuIN2LKGmk8Cy808X3a2xR0HVOUVvt8Zd rPzB1vjdRo7FXMAqCyfowYHBBWI2ii+OE/foLVnE15BRSup9KCRE0zBwXGGxo+L2j5cHhQ fcg8nlvVRheHSb/XUj4X5ZCc65bOdBW4h92Vx3a5hHXNoAO6YC3TZ7drOCLZAB/suFS9Aj G1RIfRUY/TGDHbASQWX4P7RMS3TXKU7eeJFAG9CEPj36VfsBkZtjOPZYDEDCG8DE2uOTgU 1ShT/8avUE5E9t/zNA9DkP4GVQo6mwF2xvbdLnQ1pHyZwxnS9JctMIgaacuO0A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789774051; b=rUctnsDUgliOy15qj0LSWpNhhCqmOYL9NVRp5RnLLxziZZ1PBSiniUGhpxiozWCW+Sb+XS CLYxl6Ln3qiUxca9aV5VJS1BOvc0oe2+Imidu8DRv9/poWNPI9UeJ6xapNcYSrK+V+WAlV X72goXCggBd2P2roSxMjUByQgmK/v61Xwhr4KsgJDvNUpR4qRBevNC1qceJCkRCaOMNHo0 AtucmK9oTMn845Q7eHCoRWgZYhU7ACP6sB9h50T6E4a4/kDoR0kng6tv+6dmmAgw1EmYrK 1b08Gc0DDqNu+2oZHD22BvY3iJddIeEvRpyuLDXcX9PfmaA3QfFZhc/Rc12OaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789774051; 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=7SxnIIceQPVmeF1kd2XM2tlySYrfl84ZdD6HMF10Syw=; b=vx8iekDWfwKOicCXA2QkZVfkWCTraSE1Bz8Iad0cU5mgvEw4MkwW58nXF0J6IVHOqHnEAL cvJok+geV3tDQ7PAh0f8Lqekg4kTDl2QJaM1dicNOfJJzNW1ePDDXrxWnRYwHJ7FLsPWty uM6wd3aEvuajrqZMBm7WLlNaY5OUnTUhFLp83XR7Ppdt7WV1/SzP8C35q3OzyiqNoRhj4u Xyt2r4TeZcLOzvpaRMT6+ZCMyPvqajpbKcafndTWdAdN4ERFmDKzfaNpZPdN9ry2Ehpu0X PGtBWB3BfhKW5bBFRrqpk+w/77crv47D4pdBkee+8CL36y/5vXC8JeqZhFIQ6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hmpgk5XK2zh4d for ; Fri, 18 Sep 2026 23:27:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27802 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 18 Sep 2026 23:27:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 62c80d76f7dc - main - bnxt: Initialize RSS with the common key List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62c80d76f7dc960f430cb34f88c2a549612e3e93 Auto-Submitted: auto-generated Date: Fri, 18 Sep 2026 23:27:25 +0000 Message-Id: <6aadc8dd.27802.7143dc80@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=62c80d76f7dc960f430cb34f88c2a549612e3e93 commit 62c80d76f7dc960f430cb34f88c2a549612e3e93 Author: Kevin Bowling AuthorDate: 2026-09-18 08:29:18 +0000 Commit: Kevin Bowling CommitDate: 2026-09-18 23:26:53 +0000 bnxt: Initialize RSS with the common key Use rss_getkey() for the initial VNIC key instead of generating a per-attachment private key. Preserve the writable rss_key sysctl, its override lifetime, the hardware DMA representation, and all hash and indirection settings. Reviewed by: gallatin MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59795 --- sys/dev/bnxt/bnxt_en/if_bnxt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c index 432dceb6bfb2..deb5a62347bd 100644 --- a/sys/dev/bnxt/bnxt_en/if_bnxt.c +++ b/sys/dev/bnxt/bnxt_en/if_bnxt.c @@ -47,6 +47,7 @@ #include #include #include +#include #define WANT_NATIVE_PCI_GET_SLOT #include @@ -2893,7 +2894,9 @@ bnxt_attach_pre(if_ctx_t ctx) goto failed; } - arc4rand(softc->vnic_info.rss_hash_key, HW_HASH_KEY_SIZE, 0); + _Static_assert(HW_HASH_KEY_SIZE == RSS_KEYSIZE, + "RSS key size mismatch"); + rss_getkey(softc->vnic_info.rss_hash_key); softc->vnic_info.rss_hash_type = HWRM_VNIC_RSS_CFG_INPUT_HASH_TYPE_IPV4 | HWRM_VNIC_RSS_CFG_INPUT_HASH_TYPE_TCP_IPV4 |