From nobody Thu Oct 29 06:49:08 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 4jFZZs16Ppz6xvdJ for ; Thu, 29 Oct 2026 06:49:09 +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 4jFZZr5kq3z4BKS for ; Thu, 29 Oct 2026 06:49:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793256548; 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=gxMtfJf6KJKrMcN4Ya0N7N69z82uqMpC9vJ9qUMwQ/0=; b=H+Yb9EY8JkkOCUMa5RPVc+mXFUKkrcsUZHjX6+1ghQ9SqI52DhPllg2SgyPpar+hF7dLNJ 0tXts2juFT49lZtjZyGaziNVzyS4nCwHFJ0zMZTDMU4ciWrl0X4+owCdKX1FzMXhmh2BEC yKYGryRgALti6r2OfZEzDzgObUI8vBbUELgi+1dNekRrNwAeXy4zZQ1oSwMzpr8eV7C7pA atxC2rU2xoFCMFzIHq4FFzvAbvdvwHS3F75TcCi338lqJfNPLF0Uwb1xZ7l0akxIFXhjbL E/QbRkq8aQmHP/sDnEB1Ym7SAV68C38QpyDeUHnWWAXw1jDPsDPDXluzKA77Gw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793256548; b=Onj3T7ygHl8gQvlHyyO+OJrpUUOQWE+7A78AfSP/eGgihi0SmS7Jfzgj0feRe8x2sbobhh cRNp7I95cAds00k52dRG+YdlJiCXi746fo2xdG+ciEi+iYWaiIBCrk1sSea5Cca/b6Thx1 SR96BvCpVi+Ys17P2+6d4puVp7+1KA0/6V7T5s3DGZFV8FqGm1OvktDv/GVY/CBWn7xzUu tPkHiuWC5NraklmPlRB96PEXHyX5EUmEkmYqNjg04hrtAoFe3wGdnHyNN84KbHJCI7bhdE +wwKxvC6MTDCLXEbEQ9DFGQORrTfZduvMlfUS3vS/rd1mwZlUQz9k0eQ/uKN1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793256548; 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=gxMtfJf6KJKrMcN4Ya0N7N69z82uqMpC9vJ9qUMwQ/0=; b=wSZ1L3f8/UtXfFKajM904CNF5tRqA3ccKjOyEwh8adLeKAs/1xK9azdUQit9tL6ln68MMt TTXaDX4V1dLiNfsFmB2kK2764Dao2kOAc2xebdhZuBmqfhuDcfNEZckr8QdVvZ7LEJ8Nh8 BBnKmJ6N36I3XmhwAqYYh30NY5V3i2Jagc1u2dfYGjkIWgnc2r0Ef5typQBDbv5I60CMTe CdGvrVheDp9p2SX9bN/+kFPoo49FRZ0oX5k1w1MGQEhM0iPp+Tq4Yz4DO2d2j9iijc0f88 3rW4VZsqhOW5ZlN/+hmG+dUDG32QkXPFWiHrXWKhrNKpTwEuBNypGzhv9Z6tJA== 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 4jFZZr5KBGzSDr for ; Thu, 29 Oct 2026 06:49:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ef55 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 06:49:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: d93919dc9b6e - stable/15 - enetc: 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: d93919dc9b6eb5ce3c5ec92b3dcb8d762da25beb Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 06:49:08 +0000 Message-Id: <6ae2ec64.3ef55.2a11d843@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=d93919dc9b6eb5ce3c5ec92b3dcb8d762da25beb commit d93919dc9b6eb5ce3c5ec92b3dcb8d762da25beb Author: Kevin Bowling AuthorDate: 2026-09-18 08:56:00 +0000 Commit: Kevin Bowling CommitDate: 2026-10-29 06:48:06 +0000 enetc: Use the common RSS key Replace the random register words with rss_getkey() and decode each four-byte chunk with le32dec() before writing the port's key registers. Keep the RSS capability check and existing queue-count and indirection table programming unchanged. Reviewed by: gallatin Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59805 (cherry picked from commit 449fc84f370b079619eaa0d70008391ac07718f5) --- sys/dev/enetc/if_enetc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/enetc/if_enetc.c b/sys/dev/enetc/if_enetc.c index 81e59dc10559..228eb0e26b03 100644 --- a/sys/dev/enetc/if_enetc.c +++ b/sys/dev/enetc/if_enetc.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -603,6 +604,7 @@ enetc_setup_rss(struct enetc_softc *sc) { struct iflib_dma_info dma; int error, i, buckets_num = 0; + uint8_t rss_key[RSS_KEYSIZE]; uint8_t *rss_table; uint32_t reg; @@ -614,8 +616,11 @@ enetc_setup_rss(struct enetc_softc *sc) if (buckets_num == 0) return (ENOTSUP); + _Static_assert(ENETC_RSSHASH_KEY_SIZE == RSS_KEYSIZE, + "RSS key size mismatch"); + rss_getkey(rss_key); for (i = 0; i < ENETC_RSSHASH_KEY_SIZE / sizeof(uint32_t); i++) { - arc4rand((uint8_t *)®, sizeof(reg), 0); + reg = le32dec(rss_key + i * sizeof(reg)); ENETC_PORT_WR4(sc, ENETC_PRSSK(i), reg); }