From nobody Sun Nov 01 21:47:24 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 4jHpN16rl5z6y11W for ; Sun, 01 Nov 2026 21:47:29 +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 4jHpN14tryz4fd3 for ; Sun, 01 Nov 2026 21:47:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793569649; 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=fSIteZlSZt4JhCrmCoMAQ95nvW/wLcnvmOGtG5Qpdew=; b=mIClTIdjQQuB9IAa2YUguoByXrJf3fOz9Ut4kQ+IuVIAG+PBQJKpYr2vILj/KRYlvgKCE1 P1AVqO6Gv3ZyTSAUehQ9paCpSZE5EiZSFmiq06CSy+mqRUcGSxnLerIPnV9TZdUydqxJh5 lj4906/hoo0HS/FsuVRGBNc8u8/FJEqw5P1DnP4ezT+XFGM+Nsb+U3Uql0MgEAjgH+Kp9Q TyhX8SIUNCB4WNoJJAOPIZjBacoVOKBADIpxxFxTJ0TUlpOVyaH7B6bpNnNPCkR0EHCtzg NocUdQolzxAkJMoZstqaXmP0jsaDBP4ewZjxHB0JuPsnzUv9txc3ZIfJqdFvtg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793569649; b=TYfjTca43aKnh1rpgEmeGbB2GzrZi1KyIdsHzoTvKiBb+Kv/BQzL/WYnbPtqbXg1649DZT obduz/qWyB4baM1WKMVrzyqNK1uKw1edjInpRJoV1W5Lu50LFV44Q7mPoB10+0ASWbgOsh /FGa0kRo3X9BzeBfdEdh9KbU2Q+f4XENf0z89XBgYFzg6f77KCHtKbcSg7i7E4+fhVJGj7 2J4yA9tq1prjLAlLcdHPLVTMXTVMh5nE4BujIAvjcCh+cuB6X5neZUi0uyP9b9+SEe9qEd 0PQMbP2AdVuRJBzwas4QykYuXLuNMkGVjqlwwbu5Ke5iOGf+zq/sPotkYZ1ouw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793569649; 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=fSIteZlSZt4JhCrmCoMAQ95nvW/wLcnvmOGtG5Qpdew=; b=Je5cubLd9ERSkWZGB6arHH9trqe4SYDlZulVJMTY+z+DYTWUOuETm2RvOSwoXtU732Qvgc 8zCC4wXx7KG/EltuJ4pq2yfYNNSEX7s1uiwdkXRnnYBFc603dLSCnh2I7+x3LmHtyh3fN6 DAKIwT7BnehSxPyACHDrB+f9k/LXY5sm+MGrXMTi0k5W05cVouAt9rcQL0D6EZAChqoRb5 suI2BT+VfOH5mD47Ripb0lkqC5Kp+wcN4wXIyeA3W068RusvmLXK6O8KmRF8wgZmm4SAE9 KKSv4/Wybyb/JeNePTDfX9KFnugPQvh3DGrQgP4TaQ1tK3mHs1rtM44NEIe2kQ== 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 4jHpN14WY9zH5Z for ; Sun, 01 Nov 2026 21:47:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e765 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 01 Nov 2026 21:47:24 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 9bd865a67c22 - main - 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 Sender: owner-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/main X-Git-Reftype: branch X-Git-Commit: 9bd865a67c22aa19c99aaee58fd98c03c5ac0bab Auto-Submitted: auto-generated Date: Sun, 01 Nov 2026 21:47:24 +0000 Message-Id: <6ae7b36c.3e765.166113d0@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=9bd865a67c22aa19c99aaee58fd98c03c5ac0bab commit 9bd865a67c22aa19c99aaee58fd98c03c5ac0bab Author: Kevin Bowling AuthorDate: 2026-11-01 21:09:57 +0000 Commit: Kevin Bowling CommitDate: 2026-11-01 21:47:18 +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") MFC after: 2 weeks Sponsored by: BBOX.io --- 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? */