From nobody Fri Sep 18 23:27:25 2026 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 4hmpgf0gZTz6t7RB for ; Fri, 18 Sep 2026 23:27:26 +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 4hmpgd6QdCz3LCg for ; Fri, 18 Sep 2026 23:27:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789774046; 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=M9qCjJqHskxChOvXQczbDM+F9aGhfLt8shwQ/WpLf9ZM63BG+vezcr1/SkzWD/rvZS5uaN DhcaLgsvY4yXPi+WWUt67S4M3G7fN+6yPMUKTvcO+f6vpA/cX8K7T28lDqG5p4zI+xYdhc nFdraUGt7rgXrL157hudW42t500MonC2GMGe7JnW756pqDUbfdqYe3LaURJYeWCmjuRJ3e PqPOqvVT0ZjkI2rqDruQBni4ZRhAUhXujcZivkxKv2Mju/+NTWBRXrBFFmfLkWlix2aL+Q DZ6c7D3tSHUg8ulV5ZTI+kFqUa9D7j+GFpXZYAYZGoPRdDD6UNXQrAlbtgWlFw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789774046; b=xWb7hrN86Uexm9m4HJDTPdgCEpLiS2feSjiLIG+k/tbh8XFGzlmjZgXKX5PGwJBa0QB5yR IwkHgKNg2lPJynKT2ctkZ8xl1RKAp745waqlVhnjUji8GscYa41CKj8x7vPl7xtYA40AkC Q4aj3r8gg1p8M68X+MBJj8l9nPIkdnyLx/vBNo06nmn7R4CGEaaFJvHcCvYXX3rhO83HxB Jegem0197Cpez6VajqzJpmO9jpk9CkwOE7rSuVZhWOlwQ3eTXf1zMvAFu9zS+Dwc9dM1r7 vEltIf2XG0S/A2QC8zg8/zRFD/EjyWZpc1BxpdCNJoOe33rWeW1obYUtS23EcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789774046; 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=krZkvx0d3ebMCFcPhi3IkCxAszPWJlV7wTFXqVj6M4vtON6BlCVn/YDbCYNwDS9ln+Odkb yodx5ectagjVaXuMzl4GSUJayBimr5ivhHfx96uBnMt3D0/D173WSdYnMTtwEGu1BT5TeB Qk0AvEMwsr4+TfgOHbWEyuCCNCY+fquvHeohWVyNkyu2JVjTdiIAvum8x5vJayfAq+kj0X in5zfO26uRK2DIPVml2+jdCV8AdPMfYlvDRWf7L7DM2eueGgIJouctLmvKCEw2zXepCHd7 Fp4Jh26yo8Wh8KzE1Z9XAel7MXEoq/11BtmG73fgpJv3PXtmSv80Q35unVIyvg== 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 4hmpgd5Vcdzgqw for ; Fri, 18 Sep 2026 23:27:25 +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 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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 |