From nobody Mon Aug 24 00:53:53 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 4hSsqQ0ZLkz6q2DZ for ; Mon, 24 Aug 2026 00:53:54 +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 4hSsqP3bmtz3wJm for ; Mon, 24 Aug 2026 00:53:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787532833; 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=J3ZZJqSBjd10xwfMVCMNKtaddw8fxTqZn8c7I2mydrE=; b=ZuDrUyspDJfjF3Qyxu4vCSI1MOunnGWRjJ1bVb6e3f0N/zhztetEn8/st6VRA1ebCNe7nP RyzX9962cJ4H2MIEUy84rdB+OkftlPwfP7OAAyr6ybcUd5avhdc/XJIAcH5uOhNJ6b4P/7 Be6cYk+v1J7k4PpAyp9LLXeUB88yvfOJF7+nMMpiFP15Lxy0qzKm8aSN+5SCyumdZnuTQM wg8wa7mUUmcu94AzM8aUNYu42gd/hYPcI63a3k7RG9sGMRctZVECD0fV8sM/zy5CjMDQle 2vzFMbneBwDpGDouVOTFNcTlNL7nClUTmtZ20W/9q4PE7U1w1YpEr9+NX9+nTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787532833; a=rsa-sha256; cv=none; b=P9YSD9qy9WqP7DD+07j4EOcxp196mo3tVl2pcmMx09iQYdbwyAkAcEtvSL2xYFnym3ewCP LV0E6ObUJeaBadU99YJvlKz6djsNIIvCYKU+hAUVsWE35DVkeDXnz8cKKZqDVH6r7cmrtO to7yaVDyY4YrVqgFDWUJlr/zgb2IhthqTnsWFXqEjKnmhI5/xBev+pTSyoQOYBHKNhgLAS pMzwwDSId5xqAY86qobfO++ecpKDn485pOImp0FJuk6tkAVF+DC6daR8/SgPK/AVDwE3eU odKZohsTccJLH3kGmWkPN6yLNJR7XfTVwnrV/Vp4EKjRSCIxpkV49d69xwTEIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787532833; 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=J3ZZJqSBjd10xwfMVCMNKtaddw8fxTqZn8c7I2mydrE=; b=kmhXxSSy5sWIzoKrg3mxGVV4NYgJq910Ac08YGVWxhjQEInDYwLQNoVfN4aasjvpMVlPeT f7/pe2+zXNhXjzzNsSsaycqDZbsZyhUs2vom28NNOUs0J9BT9LsHt40WcSZV+a61pgF9rv U4dqRs+oDutSPvKk7cCDM2pVdFlqXL6vzk85Xo2BxawmKoKuoLVYvnTPReGSj0joT8Lghk qfdlxoPq3nrTDQiJTsyl2tsPO4CFnMeC5bLUvRi6BDK7q7Ukf4NY5f5R5BL+HWTs761Flc 97yDbaWx/HCr+K5bcBKz4oDPhS1m8J4VRmzBXvcJ7ekcJrmwmb/43r0Ip2eQXQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hSsqP2QfVzj69 for ; Mon, 24 Aug 2026 00:53:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3322b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 24 Aug 2026 00:53:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: dc670f157cc4 - stable/15 - ixgbe: Preserve the full VF RSS domain in the shared RETA 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/stable/15 X-Git-Reftype: branch X-Git-Commit: dc670f157cc435c20859aa61731618c5032e2d30 Auto-Submitted: auto-generated Date: Mon, 24 Aug 2026 00:53:53 +0000 Message-Id: <6a8b9621.3322b.8bed7f1@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=dc670f157cc435c20859aa61731618c5032e2d30 commit dc670f157cc435c20859aa61731618c5032e2d30 Author: Kevin Bowling AuthorDate: 2026-08-10 15:53:10 +0000 Commit: Kevin Bowling CommitDate: 2026-08-24 00:52:07 +0000 ixgbe: Preserve the full VF RSS domain in the shared RETA The 82599 and X540 share the global RSS redirection table between the PF and its VFs. Programming that table from the PF queue count prevents a VF from using queue indices absent from the PF layout. A one-queue PF consequently directs every flow for a two- or four-queue VF to queue zero. Program at least four queue indices while SR-IOV is active. Each pool PSRTYPE.RQPL field masks the shared table to the queue subset available to that function, so the PF can continue using fewer queues. (cherry picked from commit 8b668bc7e7c8b0a1bcb018360a4aafa445ff554f) --- sys/dev/ixgbe/if_ix.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c index 475735e7e50e..18645950766b 100644 --- a/sys/dev/ixgbe/if_ix.c +++ b/sys/dev/ixgbe/if_ix.c @@ -650,7 +650,7 @@ ixgbe_initialize_rss_mapping(struct ixgbe_softc *sc) { struct ixgbe_hw *hw = &sc->hw; u32 reta = 0, mrqc, rss_key[10]; - int queue_id, table_size, index_mult; + int queue_id, reta_queues, table_size, index_mult; int i, j; u32 rss_hash_config; @@ -679,19 +679,31 @@ ixgbe_initialize_rss_mapping(struct ixgbe_softc *sc) break; } + /* + * The global RETA is shared by the PF and VFs on 82599 and X540. + * Program all four queue indices while SR-IOV is active so a VF can + * use its full queue grant even when the PF uses fewer queues. + * PSRTYPE.RQPL limits the subset selected within each pool. + */ + reta_queues = sc->num_rx_queues; +#ifdef PCI_IOV + if (sc->iov_mode != IXGBE_NO_VM) + reta_queues = MAX(reta_queues, 4); +#endif + /* Set up the redirection table */ for (i = 0, j = 0; i < table_size; i++, j++) { - if (j == sc->num_rx_queues) + if (j == reta_queues) j = 0; if (sc->feat_en & IXGBE_FEATURE_RSS) { /* * Fetch the RSS bucket id for the given indirection - * entry. Cap it at the number of configured buckets - * (which is num_rx_queues.) + * entry. Cap it at the number of queue indices that must + * be represented in the shared table. */ queue_id = rss_get_indirection_to_bucket(i); - queue_id = queue_id % sc->num_rx_queues; + queue_id = queue_id % reta_queues; } else queue_id = (j * index_mult);