From nobody Fri Sep 18 23:10:08 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 4hmpHh74shz6t6gt for ; Fri, 18 Sep 2026 23:10:08 +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 4hmpHh6M0zz3Gjm for ; Fri, 18 Sep 2026 23:10:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789773008; 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=CZ9ZS8nL25eEf25h9xvIDIsbZ6AE6pIyLPWfXAjYqY0=; b=CCBLyfTRQRVbkXN1HPejn9AOakyOmrkO3LoFGqrJVnTCQphE1YVwnKFpwZBFTI9yw4lLAE ci/1FREpfzHm4VqT38Llx4Wr2aq1PUsXykBIfubmlZJMIOYlxhITuPIldHLmywN7v3J+uR 0MIX/plmxdk/XvZ3XGZH9mU+0nnYYUCJIULGcAfBCsOPjgngV++xSm6Srlq/IfQAN0gMoq gpc1ZBQjJ85JY+AFiJMavEMdNptYUol4/UlrikQbRwyus3pp8zcN9cQTgNlXDiS03xpaMx bam3IQy+p8jrNNTVAiMzh4OzATEiARM7lecSmgGCP+tpdCcs6USlu4NHe3YnFw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789773008; b=IjdhmlrJ20PLJCUlGkKLFtuPZ6PjmUwSJZbLcc2LUboSbpgNgeffAi/zxrZk/sOY3b2sVm 8D7tbhSnl1wCA+62QwLy7FjK91bLEJE2yzUOA2QN0jW+Ht5tuMNYh7KzCl25ZYmDYw6hHy RoKo6BujmV/IjVTgkCIIQEXo/wXEVaFKoqdfpHnswC5zT5CM4avXZALayptOs5H8RJlqDe 8lucQWP7JkPKb3cHYCDYY+B8hjuNNkyN7aV3lzewaNum0wyJZeduE2MP71KfSiUaKO1Awy Ee7PFHAmPy59u8jwOpqZiD8YnpXdUGpRauC5HspFqB6GKADMol66075a10+GVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789773008; 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=CZ9ZS8nL25eEf25h9xvIDIsbZ6AE6pIyLPWfXAjYqY0=; b=p+zwNPzIRC8cMw5gGfmFSxXBOzEre/MgQsIUYTpnrb7sFArIvTTv3nsuw8ryNNiSDgvdeC bOdjbqqQLPlKN77mtMRAeD8vN3p0lCQeTYuPkw7A+8THFHe/eOhF8emhsRZ+/BgAjw1X/D KxBEXi42Wah3ARi2XaS34CYHfeWYeaytZy6YqoIBKv4aXXciBOw/ZQdUkM8Kammc0PU6K5 PFtBxwo6njC7g3yw3ZfIWXLqhJ/gvqVOx+3ODn7MGWA9RJ/0oNdtOmAH/2VQRd+RAhrVI3 ecyA1dafd5zCjRpiHkaEvyMTXPmxz0GXaJRiG7acTNtXiSZBdUkChVhepPS6cw== 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 4hmpHh5PwCzgkB for ; Fri, 18 Sep 2026 23:10:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 25477 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 18 Sep 2026 23:10:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: fbe4eefbb6ca - main - al_eth: Use the common RSS 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: fbe4eefbb6ca29e1f88d122619f7311896b81b1f Auto-Submitted: auto-generated Date: Fri, 18 Sep 2026 23:10:08 +0000 Message-Id: <6aadc4d0.25477.35b03e55@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=fbe4eefbb6ca29e1f88d122619f7311896b81b1f commit fbe4eefbb6ca29e1f88d122619f7311896b81b1f Author: Kevin Bowling AuthorDate: 2026-09-18 08:55:59 +0000 Commit: Kevin Bowling CommitDate: 2026-09-18 23:09:32 +0000 al_eth: Use the common RSS key Fetch the common Toeplitz key instead of filling it with random bytes during receive-forwarding setup. Check the key size at compile time and retain the existing host-to-network conversion for each hardware word. Leave forwarding, hash selection, and queue mapping unchanged. Reviewed by: gallatin MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59804 --- sys/dev/al_eth/al_eth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/al_eth/al_eth.c b/sys/dev/al_eth/al_eth.c index 47d31c264f67..c078f7b427a5 100644 --- a/sys/dev/al_eth/al_eth.c +++ b/sys/dev/al_eth/al_eth.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include @@ -2960,8 +2961,9 @@ al_eth_config_rx_fwd(struct al_eth_adapter *adapter) al_eth_mac_table_promiscuous_set(adapter, false); /* set toeplitz hash keys */ - for (i = 0; i < sizeof(adapter->toeplitz_hash_key); i++) - *((uint8_t*)adapter->toeplitz_hash_key + i) = (uint8_t)random(); + _Static_assert(sizeof(adapter->toeplitz_hash_key) == RSS_KEYSIZE, + "RSS key size mismatch"); + rss_getkey((uint8_t *)adapter->toeplitz_hash_key); for (i = 0; i < AL_ETH_RX_HASH_KEY_NUM; i++) al_eth_hash_key_set(&adapter->hal_adapter, i,