From nobody Fri Sep 18 22:58:33 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 4hmp2K3ftYz6t65j for ; Fri, 18 Sep 2026 22:58:33 +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 4hmp2K1zlyz3Byx for ; Fri, 18 Sep 2026 22:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789772313; 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=g+DPbGTKYzIYCIAO0LaO9d34phEdvI0Q+XAGG/ozjgs=; b=Y+cRos3VBgy/8zjulo2n7BXoLBQIMY/t3E9EPn+kQQO8p0agNbstdvFsfrmbiEDjfDBoap gob7EvRJ95g0ZiejpjpKTbR24SvcifIqHBo5Wa7HNcN7xehr3WrYMnG7KJUKOLY2cdb9l8 ItxkKUF4QPNVdalAkfeF0RfUkBbfPNt9N+4ZwCryoVQjNv8V2oE5Cap3kDLxsfF3CVZIBn QVE0FrB6aTX1eWkAqjlK8lCE9LXGbEeqpYJ1kE7Q4NX03h7bvimaSWND5XePElTTOlTX/B 8K3aUQl33BoRY9VfR1QoZQHoV7+3RLehkfRL7hC+vcNfRrpCIqOazijVzJ9/tQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789772313; b=YdP9aBLQyNXeBLH6PodEjN5HpW+97bAoH5JjPRRQ9loolrT29vx2xLL/jSG+srteIzA0Q0 GGcIKYrJ4OqzMM0Y3p32Ob1vILZkSSl2SWo22/d5ZzesVgYINjczkgCEW2XxzpZn2b7yZH qDup5zmKzcJAV55j4J45o9hhkd+4Y074fkdX8lWPqP5nsGkUnpWnCTTQbkyVs+ZPtZK8AP kJe27l4UalSRUANbR3jh+7sc3It+MFZfdC93v/dsrG0/PFGq6LinmB65LNDaT43MvqepJt +DOcbQ1MtbiBlITsyUjV1mBCvqKhMoAFt8GU6iq5JDa3cXwTHazLUzlEZZLmXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789772313; 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=g+DPbGTKYzIYCIAO0LaO9d34phEdvI0Q+XAGG/ozjgs=; b=gu1KOsNS+FYghDzS0Stgf453F+C6E0hqftCX84cEQpyCi5HcxlpN2RDyOl3tonCcX+PyEo IhfMSYAt1YvvZND+fIYJAd+9r9DOuVWakE/SO+DWDOtbu7sux6+t03wCtvd8b99QpOPYTJ +8pQ6BKjanm0p0KXxFKu0T4r7k7EcDw3nH0bdcYPKL13F3uOqCUtkQ4SARymhAryWnjvh8 Qu5LkDu0t1Lz2i+OimGcm2UDs8CAJLImH2lco8x068bg9TiK8FE2fgd8dJsSeFdmgC0ZhH c6C4AKCzx65FTJe0qWuStSHBrkKzTkt5DbwBusmSkVX1rjsOcS5AA5xlmZ68mw== 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 4hmp2K0mLYzgVK for ; Fri, 18 Sep 2026 22:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22de7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 18 Sep 2026 22:58:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: fd74d1e83e18 - main - oce: Use the common RSS 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: fd74d1e83e18b8f014d8fcc7b61f2e9461512dca Auto-Submitted: auto-generated Date: Fri, 18 Sep 2026 22:58:33 +0000 Message-Id: <6aadc219.22de7.70d64d7e@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=fd74d1e83e18b8f014d8fcc7b61f2e9461512dca commit fd74d1e83e18b8f014d8fcc7b61f2e9461512dca Author: Kevin Bowling AuthorDate: 2026-09-18 08:29:19 +0000 Commit: Kevin Bowling CommitDate: 2026-09-18 22:58:14 +0000 oce: Use the common RSS key Fill the RSS configuration request with the common 40-byte key instead of fresh random bytes. Preserve the mailbox representation, hash selection, and indirection table. Reviewed by: gallatin MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59797 --- sys/dev/oce/oce_mbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/oce/oce_mbox.c b/sys/dev/oce/oce_mbox.c index f24271ed65ae..2aaf329ffb45 100644 --- a/sys/dev/oce/oce_mbox.c +++ b/sys/dev/oce/oce_mbox.c @@ -40,6 +40,7 @@ #include "oce_if.h" +#include int oce_wait_ready(POCE_SOFTC sc) @@ -846,7 +847,9 @@ oce_config_nic_rss(POCE_SOFTC sc, uint32_t if_id, uint16_t enable_rss) fwcmd->params.req.if_id = LE_32(if_id); - read_random(fwcmd->params.req.hash, sizeof(fwcmd->params.req.hash)); + _Static_assert(sizeof(fwcmd->params.req.hash) == RSS_KEYSIZE, + "RSS key size mismatch"); + rss_getkey((uint8_t *)fwcmd->params.req.hash); rc = oce_rss_itbl_init(sc, fwcmd); if (rc == 0) {