From nobody Sun Nov 01 21:47:25 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 4jHpMx6wfVz6y0y5 for ; Sun, 01 Nov 2026 21:47:25 +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 4jHpMx4Gcdz4fVT for ; Sun, 01 Nov 2026 21:47:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793569645; 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=AzeE8YSdvepUhY7bLkzXfksrrNzDsd/pTfDrZcRitFE=; b=dl8QVmZKMWju3AIFzWgcZlCdWenjUfR0n34u7yf7bLfOuRVGYmlXfKBpn7dUYnDOaOpW4X XxQ+fz4fAq6xmght9cyPSHhTn+gPfFegCScKH7aWjG+bQ01/F/7DRH+JZ/8Q8w9ndVVXFZ l20GCKOURik/y7T/hpGM8WJn+4Hnyz31DbxCmGCgrqkuFR4do3DbZlNao2b/tMP3YG8WCB hE//kfpeSx3RphZRcl9BVRN8BmLVnhMisCifsr1rkO/wyddv6Lp8IJ++JHq5FlLYoxC07K niA+V4vSyWZ9V0Zwq7W7aW9tB5OG8+kae1SZRxyd5EAEDzp1Cz0/kIsT23Id1g== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793569645; b=IitBsfHzmz2pyRUBzhZBacHbGZqBWlMxr20s+vuUcBJgjxe6R9hYX/clNvEXws42LuSspv EXgQbUFHoPzWfHOQeM49C5ONawXhOHARhTWIZyl24Le1IQUEqQwUa1gj/XbvLAXdqijHB8 2MekDrUnG/3Udex5rSnUnnCDvcT0haMdB+6EwuyjCiSDvHqusbKiBcVmFawnaW2YeoJlzc h7b8vcXB/XA0bawx+d2W/Xv+pgZmVf89JK5RZk6RSlDlvM8iZHDc6gzErN9/KuYpQWsYvk IF0uaaW0R6XbpojXsJ/uYEQfZPRUu+WfSYUYUem5LW0dJ9kNQUhB+yw0xB3XNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793569645; 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=AzeE8YSdvepUhY7bLkzXfksrrNzDsd/pTfDrZcRitFE=; b=URO0guWnYuxfQBdCzBpt0qoGUDMaGqqwSFiSgVPJ1HNGMykzCo3/Fl1CkZV2AbzZ7s5R3k SoOZxfPvA0SOZmZ4/E6ayj6aAN/VsPMT8yQrW4uRQtjh2yVemzLLIbb3vgWLW46G07PXPv TUDUHGezeIGgUCoWINHoyKZFzwEiszrOrUn52yV0HibCuI+Ifxc4CiWbtnR72QufaVpo1t N5NpAQ/2YukBmn2c3u82KH2+Tg9fY0VoUKhluegUTaTLaMtVestRk5b8/opp3LQ04U3PfO lzKz7yh+uqsJsyW7dc7OCHivsBPZXpU400c/dWyH+lWHRHibky8MYNxazJwQWQ== 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 4jHpMx31W8zH5Y for ; Sun, 01 Nov 2026 21:47:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f1c6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 01 Nov 2026 21:47:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: cbaf3f1bc555 - main - ice: Use the absolute VF number when adding a VSI List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch 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/main X-Git-Reftype: branch X-Git-Commit: cbaf3f1bc55524126182f63d09ed79ba8cf61cf2 Auto-Submitted: auto-generated Date: Sun, 01 Nov 2026 21:47:25 +0000 Message-Id: <6ae7b36d.3f1c6.3497fd5a@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=cbaf3f1bc55524126182f63d09ed79ba8cf61cf2 commit cbaf3f1bc55524126182f63d09ed79ba8cf61cf2 Author: Kevin Bowling AuthorDate: 2026-11-01 21:09:57 +0000 Commit: Kevin Bowling CommitDate: 2026-11-01 21:47:18 +0000 ice: Use the absolute VF number when adding a VSI The Add VSI AdminQ command requires an absolute hardware VF number, while vsi->vf_num is relative to its PF. Add the PF's vf_base_id, as the VF Tx queue context already does. On an E810 PF with vf_base_id 128, relative VFs 0 and 1 were associated with hardware VFs 0 and 1 instead of 128 and 129. Their receive queues became blocked and both native iavf and DPDK receivers dropped traffic. A PF whose VF base is zero hides the error. Validated the VSI-to-function mapping and receive traffic on that PF, including VF reset recovery and local PF/VF forwarding with VSI loopback enabled. Fixes: bc761988b724 ("ice: Add host SR-IOV support") MFC after: 2 weeks Sponsored by: BBOX.io --- sys/dev/ice/ice_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ice/ice_lib.c b/sys/dev/ice/ice_lib.c index 8253f39f6d95..24685c896997 100644 --- a/sys/dev/ice/ice_lib.c +++ b/sys/dev/ice/ice_lib.c @@ -775,7 +775,8 @@ ice_initialize_vsi(struct ice_vsi *vsi) #ifdef PCI_IOV case ICE_VSI_VF: ctx.flags = ICE_AQ_VSI_TYPE_VF; - ctx.vf_num = vsi->vf_num; + /* Add VSI requires the absolute VF number. */ + ctx.vf_num = hw->func_caps.vf_base_id + vsi->vf_num; break; #endif default: