From nobody Thu Oct 29 06:03:25 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 4jFYZ63XT9z6xrfN for ; Thu, 29 Oct 2026 06:03:26 +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 4jFYZ56x0cz4slG for ; Thu, 29 Oct 2026 06:03:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793253806; 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=AoKMkdNelILUGIKAOhjN1sAcn1DxZpEKWbYVxFzU+2s=; b=O6Qbk5mpbzA5LpMHBGN73Dw/eYJEKSHkcKnIENj8Uuf+/SeDo9NjE7VJg5N+Z7Pjlwcw0F Y3IgZe7QmIWss3yceTntJfwmog16ffYQtS4ShBto+adb50K7SDDp8yJy8ANmTbVArY1bek pw4YBRepmtoZZigglX2xo32YFwPNr+F5QNoLF0kSZiluauoPx9R00LfoJSjquUa1MPpHbt zOtJjak1VtnmtNoLYux3eiLxrQCGz0JIGpLqVhlvYC1yLtGpDS5iTAsHgYjy5KWiEDuJhS 3blG6KSuqogBSmlMSlrAi2E6lPHfmi6988auChOkqVvjt2p2vBngLAyTgeUW2Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793253806; b=YXYAl8ZsAsRSOO67PHzKnX+2HF+LibLb6/FQbt96BGHr06wsKyQBYcJ+2IESORH1VrCHvJ 6ObAlYcpu3pGiGiILbbfUqyOY6j5sXSJNUp0otuyhGjpfz+IfGbq2/CFmhaQpQ7NV9Q4P+ eZFa/zi87VtwlYmXPOwRAH0a3D+qeC3N3jyooLQw7RjjJpbBBG2Qm1irEHmWoTO1XiYR8B pBrnDT4oJsFyF9Fa3sdhf9axHmcoyfI3Pb/at2scETYH00QPrfmS+Oj5hOm9b04sriQrZT yUcrTd8CDMh/a10a5ptHohT/LPbGEwHFDN8QaP1MXfDMFTUF1tNb+8EQxyj14g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793253806; 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=AoKMkdNelILUGIKAOhjN1sAcn1DxZpEKWbYVxFzU+2s=; b=f2TQ3xxw+XgiMt1KPjGy3Icp+/8K60iSa9A/vgu0VzX/RlCLUCvJ/vh32oKGuj5UG8Ya9F z9Pl3qPjGEqT6944lG1IQlLthVEXHhs/SMVBwt9OF22w9rXV0A+/7GPe0m4jQ7e4gAXbmF uiLq5DKuLqOrqvf8kBC+RX1dOE9IRT5eBFzRJrbOCFp8pcjw/2+fVD3NzFXWJqd12EpMPg NPMIkWhhCJhijk45sflzgeu6kx+uKzOPPtqQJdkIEYyMmfRGnewwQG5uyOpyhTd7VoIwiQ TkLFhsF3QfpXYDay8f2HIxmqpaBtS1kXVqx6HTE5cQCYvOL8EECBUle/4fUlcg== 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 4jFYZ55tVxzQw5 for ; Thu, 29 Oct 2026 06:03:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b405 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 06:03:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: c2a0dc16118c - stable/15 - iflib: Add optional RSS configuration queries 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: c2a0dc16118ca89cc577fa8e9df33bb5675a38b3 Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 06:03:25 +0000 Message-Id: <6ae2e1ad.3b405.125220b0@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=c2a0dc16118ca89cc577fa8e9df33bb5675a38b3 commit c2a0dc16118ca89cc577fa8e9df33bb5675a38b3 Author: Kevin Bowling AuthorDate: 2026-09-15 00:15:12 +0000 Commit: Kevin Bowling CommitDate: 2026-10-29 05:42:08 +0000 iflib: Add optional RSS configuration queries Dispatch SIOCGIFRSSKEY and SIOCGIFRSSHASH through typed get_rss_key and get_rss_hash methods under the context lock. Drivers can report their programmed key and hash selections. The default methods return EOPNOTSUPP. The common RSS key does not describe which hash selections a particular device actually programs. hn(4) needs the effective VF configuration when synchronizing RSS between its synthetic and VF receive paths. Reviewed by: iflib (gallatin) Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59691 (cherry picked from commit a3880af465e617e5ed6f1a6e49645e6a8299e3c0) --- sys/net/ifdi_if.m | 26 ++++++++++++++++++++++++++ sys/net/iflib.c | 10 ++++++++++ 2 files changed, 36 insertions(+) diff --git a/sys/net/ifdi_if.m b/sys/net/ifdi_if.m index 3fa48f7a9e97..a03eed0a6045 100644 --- a/sys/net/ifdi_if.m +++ b/sys/net/ifdi_if.m @@ -125,6 +125,18 @@ CODE { return (ENOTSUP); } + static int + null_get_rss_key(if_ctx_t _ctx __unused, struct ifrsskey *_key __unused) + { + return (EOPNOTSUPP); + } + + static int + null_get_rss_hash(if_ctx_t _ctx __unused, struct ifrsshash *_hash __unused) + { + return (EOPNOTSUPP); + } + static bool null_needs_restart(if_ctx_t _ctx __unused, enum iflib_restart_event _event __unused) { @@ -341,6 +353,20 @@ METHOD int priv_ioctl { # optional methods # +# +# Report the programmed RSS key and hash selections under the context lock. +# Unsupported queries return EOPNOTSUPP; unavailable state returns an error. +# +METHOD int get_rss_key { + if_ctx_t _ctx; + struct ifrsskey *_key; +} DEFAULT null_get_rss_key; + +METHOD int get_rss_hash { + if_ctx_t _ctx; + struct ifrsshash *_hash; +} DEFAULT null_get_rss_hash; + METHOD int i2c_req { if_ctx_t _ctx; struct ifi2creq *_req; diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 6c59d12c4fbb..a954011660e1 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -4984,6 +4984,16 @@ iflib_if_ioctl(if_t ifp, u_long command, caddr_t data) if_vlancap(ifp); break; } + case SIOCGIFRSSKEY: + CTX_LOCK(ctx); + err = IFDI_GET_RSS_KEY(ctx, (struct ifrsskey *)data); + CTX_UNLOCK(ctx); + break; + case SIOCGIFRSSHASH: + CTX_LOCK(ctx); + err = IFDI_GET_RSS_HASH(ctx, (struct ifrsshash *)data); + CTX_UNLOCK(ctx); + break; case SIOCGPRIVATE_0: case SIOCSDRVSPEC: case SIOCGDRVSPEC: