From nobody Fri Nov 13 01:08:35 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 4jQfK01bTzz6xyGK for ; Fri, 13 Nov 2026 01:08:36 +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 4jQfK00873z4k1P for ; Fri, 13 Nov 2026 01:08:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794532116; 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=gp9b+BUJqODBTkiu72TbORKivuRJUZ4JYfXPhhJVJS8=; b=v94JcPicjBPZcb5gJwEWXJOPGmJS8T8BeYzIGIi1WacA5ECH5QDAxNnyVORZ3pDufhXmJ0 VVpdsgD2wyJPDELVS/onlf3xvRXsR/bEH1YZeosR2gPljj6qm3gH/n9ivPioNxLcUhCsCD BGg7+KbFgh8o1X946QXzTjHNW4iW6mnOPn1PXrC3u6VQ8e2InIicHkQBCh/gBWsyBHDY5G x6RUuCpkOQfMmBlgfWYHW3e4/SzZeKlfef3BI2wvbNHZqHoTZxO9mnPwyhn8gCIqpRK9WC JlLbkzSE6NQo55kjp3fnTps1Cpbl6Wl0RQWFAJRi7GXUmE37+of7SvKgCk7K9A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794532116; b=w9gglf0PfDdyi6lTDqtFnGxLXrDMiLAoKWPe6mjLwgYn8wrhRBgZS3QhfCNJVXA0AouLwf ZwogwUhqEheGYMElbFvO8g61477PRSEqs8QsoyYJkoU/uU9qWksArYByNtEazVmdph0TXK mo7pnSK/DBGtynEsm4WcDhzpVf8WxsFbynslStYdb6a3L8qHiyp8WCsCCrV1Am0Jf7f1pU XZ6Va4MhtPLeZs503NvJbLY+TXvVngcqpdOCyFSM3u7PmbW6QJAAhchM5Qg+Mu0i8t06Qz +8n5KrU2O8Ap8K6SBgVtMxvA4Z6ZB2w2l/lCaz8XGTfL4mu3WVD7ylPpWxEkmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794532116; 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=gp9b+BUJqODBTkiu72TbORKivuRJUZ4JYfXPhhJVJS8=; b=yaNhnqoXNOzkfpSAQtkdFjJP9hkkwICfwQFkrm/rOUGvIyUHGwzhePjY1TQ3P+l+lgzJnm NNbtMEIwYtl05YJmqlKZ9E6MJCB2GpMdw0Bd9Tzj1J5Y4bcjYia4QmDiG7hSbBjVrtobqv SIPNs9rL7/ZdzasNq45xuAh/gArUkZAHfRStKO4VBu8RmeVeckjI+tE4xdg/PxWox5D37S u2kJ1G6LUPwtpRkZBAOv6uH+bkpqv/WmIn4/kUgxKunQ09XbIoiIG+xCxB4khPPxVtErkt kAU/vmdRe4b7y7067Zvtj00C8M4SzMb/mK2QHZ2Skl9rvVB6Yau9wzF3zoVuag== 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 4jQfJz6sHnz1Qts for ; Fri, 13 Nov 2026 01:08:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 184a7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 01:08:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: c1846b845abe - stable/15 - ice: Allow VSI loopback in VEB mode 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: c1846b845abe13c1ccff000cac2709a6275602ea Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 01:08:35 +0000 Message-Id: <6af66313.184a7.5e1756df@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=c1846b845abe13c1ccff000cac2709a6275602ea commit c1846b845abe13c1ccff000cac2709a6275602ea Author: Kevin Bowling AuthorDate: 2026-11-01 21:09:57 +0000 Commit: Kevin Bowling CommitDate: 2026-11-13 01:08:27 +0000 ice: Allow VSI loopback in VEB mode The embedded switch installs local forwarding rules with loopback enabled, but their source VSI must also permit loopback. Without that permission, traffic between host-attached VFs can trigger Tx data MDD events instead of reaching the destination VSI. Set ICE_AQ_VSI_SW_FLAG_ALLOW_LB when initializing a VSI in VEB mode, matching the forwarding rules to the VSI permission. Keep MAC anti-spoof checking enabled. Validated on E810 with native iavf and DPDK VFs, together with the absolute VF number correction. Local forwarding and queue/reset recovery passed; spoofed source MACs were still rejected and isolated. Fixes: bc761988b724 ("ice: Add host SR-IOV support") Sponsored by: BBOX.io (cherry picked from commit 9bd865a67c22aa19c99aaee58fd98c03c5ac0bab) --- sys/dev/ice/ice_lib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/ice/ice_lib.c b/sys/dev/ice/ice_lib.c index 96c58d78509d..8253f39f6d95 100644 --- a/sys/dev/ice/ice_lib.c +++ b/sys/dev/ice/ice_lib.c @@ -783,6 +783,9 @@ ice_initialize_vsi(struct ice_vsi *vsi) } ice_set_default_vsi_ctx(&ctx); + /* Match VSI loopback permission to the switch forwarding mode. */ + if (hw->evb_veb) + ctx.info.sw_flags |= ICE_AQ_VSI_SW_FLAG_ALLOW_LB; ice_set_rss_vsi_ctx(&ctx, vsi->type); /* XXX: VSIs of other types may need different port info? */