From nobody Thu Oct 29 06:49:07 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 4jFZZr1lrFz6xvdC for ; Thu, 29 Oct 2026 06:49: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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jFZZq5Bj7z3RFW for ; Thu, 29 Oct 2026 06:49:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793256547; 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=AtvJm9M3GnCQvtFl6Aa9wTtp4v/YvGW6i1vPwzHg4d0=; b=Ine6zGKYqOs9z1sVgoN5C301Sb9UKd72r+21VGHf3h33VAXVp3Gt7RS7QrO7c9+xdrhG/g B+u6iKzGOyyxGWYVwEunQ7Bcz/fk+hEVLWvGcbYSNRe9znpITabehMbLMUZOoVFD11dSSS Ykr5RoJNoCM9mpM8Tpe4YPIyQOdTJslZSUoR2U70hbbEdp7BNytlv5o7zzdUwkgvIHnSac r+nbfVwUzycdKFRWQZeSmh/nBRUinG9xlkEcwN1QJglsTWlVjYyeV2zJRvqXABh9nLseJg gqessZSy8y/TEQtUdcN/E1X3OOb0+Kl7Z9lTyxd8KpnTo6/3FVjV1Ls4acatQw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793256547; b=g/ak1Fi0xMnjOV/rcVt1WTTB6pStyeUIFFBVCOz+02q7UegC7oYQ8Ys0JeHL433wVjVCcI F/J3sZ/7LO+bCxAjjVWgGCStvsMbjd2uZeD3KktLwSBWNDoREmvLfG9Ktuaf5bGoENInHp ZtSxMk1nU79wDT83oayP4IR9uI1KVneh+D/3ay8Yzrdz2iGkvUEZXwq8bfwHevNuG5mNDY W6uflwUt6RnPXlw4jMOFoce8iVakYfhaSWQsqTg5PC5jrVnBETC6W/J14yp60DMgbxKs/B iVbPPE5Koz3XMIeLk3t4sgz1w47J80ATptTJAcaoKBJW7iSWKud3RHhLWOAe1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793256547; 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=AtvJm9M3GnCQvtFl6Aa9wTtp4v/YvGW6i1vPwzHg4d0=; b=Ia+f0LyGCejKcC8GtKzMtDGT2tAGcv5tZUaiqKF0LSAzQPxMtZ7nP7BbDqzcTxaFP+hEgJ EE+eAM4ljmqFnzAKMB2jJlaWWiWNZ7PY2bugT+eRd/rG3NX0NNF+jZUkLAfXe7NkRfhDH9 yH/uS7vGW6IXI34DukFUGw3pyTip6T6M0AdpvBanuA5fbdUUVjHcpGzccCMqy3lKHgpayj xDaa7jFPf3v6HLXPo2rpxwbTmzRnHP7Zi2Cd0Z3CCAjuRgwrGt1OMpsacjPqPxu1fIEBlI Vw7EADu/n9VZVM5+yyKhRwpbJHnmoweHavuVb4MeRgjPsGWSIPee6o3P8xU7OQ== 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 4jFZZq4sGMzSFn for ; Thu, 29 Oct 2026 06:49:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e377 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 06:49:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: a1ff07f8f4fb - stable/15 - al_eth: Use the common RSS key List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the 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: a1ff07f8f4fb81102e5e0c98214125c8489eef11 Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 06:49:07 +0000 Message-Id: <6ae2ec63.3e377.2dabf08d@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=a1ff07f8f4fb81102e5e0c98214125c8489eef11 commit a1ff07f8f4fb81102e5e0c98214125c8489eef11 Author: Kevin Bowling AuthorDate: 2026-09-18 08:55:59 +0000 Commit: Kevin Bowling CommitDate: 2026-10-29 06:47:57 +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 Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59804 (cherry picked from commit fbe4eefbb6ca29e1f88d122619f7311896b81b1f) --- 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,