From nobody Thu Oct 29 06:49:12 2026 X-Original-To: dev-commits-src-branches@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 4jFZZw5WZYz6xvZw for ; Thu, 29 Oct 2026 06:49:12 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jFZZw29vFz4BL5 for ; Thu, 29 Oct 2026 06:49:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793256552; 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=/j8O+NahEn73d7wsR/Cur8pxFXYy+b93r8z7L/8jPRU=; b=iAnlp9AThjquL7B23Xvwddgg4NaKUjCU1heGT0cEIclbNYA+tyvLsPVMB9TN9lHk4ZRBR2 s1BKcsfi0q68vkpJUsWoX3/SwLHyYHIDDLvsuFTcZ5BkIKNCSCeCHhQGtUp9YNKDnPT8ji aPyT0heipj3YEzyqrkM9LOTKnvezQE3PslPkT+qdECeXg+Ztm6yV6jWF31nkgRWT153XTH WYvtlENBio6N6J6g60k8nEx6qJ2sXozf6j1+XfJZWYfwnvvQR/6zUnpakJ1yHOuaKs7w8R 1GZnKfmy87IHxYRV7oq0xPg84nQoen6IV4N4cMrTpFr3ojBnYfuKhfInBixTHA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793256552; b=e4OLLRsft6leIjhXzhmalQgz4tS2wIm8muKYiVf7VpcCOJwOHaqypIChwSxp4vAsVnMnKE eA040D7WFc2A+DUAmLjWBu90bv4tDIVZFDXPnB0tGIxIhkBy0Bei55OIA3/QvVLmzwrat/ 2y6B8/XnKIaVyqySF64FV5IWOfnSqCBfkWRZx+IMKXIKtmG+l3h/SlXzQ8H7QFxmyG+nS4 2T7Rtj4Y3h7eHd9PrXI9y6wxoIAs4NZSTOP96f98OWYSUktqLu7Pnuq/ZXP4o7R6oyF3hZ nz9AjE81th/TaYk7NDz0WztJAEPl3Ma6Rl9UVqMbV5qWTpk2gRfJ8CkNSfqTvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793256552; 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=/j8O+NahEn73d7wsR/Cur8pxFXYy+b93r8z7L/8jPRU=; b=EVdTihflmEgh0h1hFtSjG8yy8W5fDM3Wb7dQbO3poj9Xn2yDDf+Qoy8cv4FuMjYxMAG6Ro kGRAsu3VIXbe0wm7HsZItDiWGUez5cE54JiSSCUs1LjQFi3lkJtTUXO48u4Oz/Rsd1Jjqz 5lEwzCpwb7YlP9ANmtnr7op1iO9bcdPqKhQjHRpAT+r/vwt0R3L+ISpiLvjY3xlp7PxoX5 pvnRr5rPnlqZkMB7gM7IGUVWh/BTNK+ko84SwpqS6VOhgBYMLeAFyFQ5YDqh6AMoK2jZEq X4LUtTNmGimJjO43ediZJja2OZFoyRezeiS6+aFdqPZo0MoOppK0a9Xct06ULQ== 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 4jFZZw0dcZzS5N for ; Thu, 29 Oct 2026 06:49:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d3e1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 06:49:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: e28fb76fbd00 - stable/15 - bnxt: Initialize RSS with the common key List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: Commits to the stable branches of the FreeBSD src repository 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/stable/15 X-Git-Reftype: branch X-Git-Commit: e28fb76fbd009d0498ff937bd0b6a0852aa74025 Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 06:49:12 +0000 Message-Id: <6ae2ec68.3d3e1.2c1d07dd@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=e28fb76fbd009d0498ff937bd0b6a0852aa74025 commit e28fb76fbd009d0498ff937bd0b6a0852aa74025 Author: Kevin Bowling AuthorDate: 2026-09-18 08:29:18 +0000 Commit: Kevin Bowling CommitDate: 2026-10-29 06:48:36 +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 Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59795 (cherry picked from commit 62c80d76f7dc960f430cb34f88c2a549612e3e93) --- 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 ea01feb6d982..b1bf8837a1ef 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 @@ -2913,7 +2914,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 |