From nobody Fri Nov 13 01:08:57 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 4jQfKP1tJWz6xyfd for ; Fri, 13 Nov 2026 01:08:57 +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 4jQfKP0tgyz4k18 for ; Fri, 13 Nov 2026 01:08:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794532137; 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=m/Mz8RjIAKS3EjTuaXopmAcWh6EdkapFvA7PjlKqwik=; b=d+ROSXOiGGFSzUsCmNuZaKo2I/x1SmYNjiA8u4xjCRn/9iEGGk+94GSlbRNqXzm/eo8bWi KldeMRmgwmyEZmziEgRc/kk6J4MM0GIdUfLdltmW9PariPBFgFnVqvg56lpje2ZrkNHTOc gLXtZkVjS1F1ycC90CiWBULsVbLMI5+m9sf8YrpSri2KyrIo626/Q86rhH6cGgeGM8/4BS 1csJ6B/KMQGTgr2TXK2nLujgLlxKLQlVLvv5tY8qVNltJsd/V4UFIEUwxgJbJFicf3JUGi y7+iejq+BVSNelYqC5IU3lRlyfefFvIzVUGGLTdOqJx7UoUhaeZSRGv/qiQryw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794532137; b=I+XexdIoNKBaQKX8VFbNATMYTglkEvodkbm5AakcEG4zcdeHMXL33mjBRyqTOQDXhJBFGO hVR0Dqh2eeH7oc+RX6uHw7ZAZhLMVbOV+gli2GeKW52pW73ZjwG2HvGU3hWJXBQq7nPHCs g/mcf1yN042gdylJveH0GQfb67Xz4WsmIp6QBTT/jqzs+uhxaojCR4LSYv8/p6ksSJvrpt UsEBtYBhdLsYm5H9/sSt7reNB2hMwyJn2QYUmFbUvx3hKUEJNkGRNPBcy6W053TYPxXERk OH6b/rx2pT9asyv4wsqcmAWLlL0OEZVJz1NR/+MHHsLpZclTYCkeJx3ebpolvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794532137; 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=m/Mz8RjIAKS3EjTuaXopmAcWh6EdkapFvA7PjlKqwik=; b=enfLwFkNXChALy5bWn+CV/sjkfvvMa+mFF1HpIsIkAmXZbTuHxlGs14+oZu9wcKwoQCTmh SuKhCfoLjp2uRiJzYgpCC0e2mSOHxRrkVTbZqM0mGUkSV8YmE5p6LEN7TrzhMIs0UzjG/r pKA+pJVHif2tIdpem3oL+ZddqFCct/xDGOp0XNCJfGKEeTDwXOZL5Xt4AVK9efwvBbNu3C UmWolV9bVaxJezSE0saeWa9kCB0Tn37ii+8+7QWlj8ajSMy5I3Z2t5TJfTBXtJ0FLNn5Em dFrAI8BO5LPd/WUF6MeRAZvE/wi640P5LFgyS4ikGygUtGi5w8rbcpc2HbHc1A== 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 4jQfKP0Whyz1QTC for ; Fri, 13 Nov 2026 01:08:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1877d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 01:08:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: a044f8fff56b - stable/15 - ice: Use the absolute VF number when adding a VSI List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: 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: a044f8fff56bdbf2ebe90f4ca2bd4f2e9f2b239d Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 01:08:57 +0000 Message-Id: <6af66329.1877d.7cbe1c8f@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=a044f8fff56bdbf2ebe90f4ca2bd4f2e9f2b239d commit a044f8fff56bdbf2ebe90f4ca2bd4f2e9f2b239d Author: Kevin Bowling AuthorDate: 2026-11-01 21:09:57 +0000 Commit: Kevin Bowling CommitDate: 2026-11-13 01:08:44 +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") Sponsored by: BBOX.io (cherry picked from commit cbaf3f1bc55524126182f63d09ed79ba8cf61cf2) --- 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: