From nobody Thu Oct 29 05:02:22 2026 X-Original-To: dev-commits-src-branches@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 4jFXCg0GrZz6xmXg for ; Thu, 29 Oct 2026 05:02:23 +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 4jFXCf5qt4z4glL for ; Thu, 29 Oct 2026 05:02:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793250142; 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=kmxg1SrscPfdSeAEfwYVi6eMjpOpcoZ2pAblxgt/RjU=; b=nM0X85a8y2UPe2Tlb1FC864286zuaY73mOHoJNU21varT7CUsF+rnxvOO5SBx+fpeJtVQk IytU8NzFEuSdAHmPlHvi7VhHAw6IcU+4+cFvJVM3W7sNqB2kB0eaRdudzQ+sfOtSkg5ClN Kwci4kBl5zgK9F42g0Mer4TDsqKzXzESg869FRRhhcDZE4xO+4qpiRCWlBy+8wa2D3fzyO 99SYKCgrEM7MJy3fRHRLZIQal3puIVVZiQSQPcryKsxnkeV2MNGbgb5z+OY3lw++F0RvlE xlx8xxKZMQiJ43GJim18SNCGf/wrjo5XSOTiW1OAq9oTk76whtpopyDEoR9Y0Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793250142; b=V8v5+IlZHtJFh2OFfcidHonDZBBYP5KcRQl8cwmn7wFBH/COxsxgQ9Y/mKP6LSjw3cBIRP CFFLi/cd4WIogB+EiT+MIF0q0AdM5wtOtJuKrc3Kqojs5Nb1jCgUjSAtUwC/jefiqlKnu4 Tt0F/SaND9H9HUYW3lOtWEoWgx037FrOWNkro6Vd55644Hx2FGABBg4ndXaj5h2yqM2AoR /+K9DDokfF5852VvgCG+JPPXbRCaFHmXMvJUIJw5z//9IwOyPEqeJWVWw/vE5pfLX3cWk4 l1QmQb6TUlmDy0Vnse0XxtviKotPe019PSPsYu+OujIJSpEIsxweHAaT6Dk8Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793250142; 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=kmxg1SrscPfdSeAEfwYVi6eMjpOpcoZ2pAblxgt/RjU=; b=n8FND+VriQ0PYvfxgO+HJBSxB+atr4MBZUoSgtXISGTrjbue3fnC24qgUmE+pFHFC4OH71 eOznFpzkmp2lLnT1K1CHnUdxyJXhPTU5w5AF0HQ2jKtPTnK+dJYQQMMhfCz3cmX+7kYFyo t/Jjh0avKy07S9ITHtnzNNVHJaPcht2SWBZ+LIupvxZzMuCD3Z+dTfefeDyw02/ohxnrIe e6bzQOPaTqvRkg1VLbfgI3YE6jtIhhe02fmVnACvcek7C7AU2Kvh9lnUBdkflcfqlJyuIf QHpTfFbFE4t6ONVlgbLqXCnRqgUmplksq3W0d+rmCIlWLitdCxxo3Cy7yZ9LRA== 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 4jFXCf5VCdzPGR for ; Thu, 29 Oct 2026 05:02:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33b40 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 05:02:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 1327d9102a5b - stable/15 - hyperv: Bound IPv4 address removal when configuring VF failover List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: Commits to the stable branches of the FreeBSD 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: 1327d9102a5bdbf124095c5524382a6835f10036 Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 05:02:22 +0000 Message-Id: <6ae2d35e.33b40.4b3873bd@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=1327d9102a5bdbf124095c5524382a6835f10036 commit 1327d9102a5bdbf124095c5524382a6835f10036 Author: Kevin Bowling AuthorDate: 2026-09-15 01:07:27 +0000 Commit: Kevin Bowling CommitDate: 2026-10-29 05:02:13 +0000 hyperv: Bound IPv4 address removal when configuring VF failover The VF-up script repeatedly deletes the first IPv4 address from hn until ifconfig fails. Netlink-based ifconfig returns success when no address remains, so the script can loop forever and block subsequent devd work. Use ipv4_down() from the already-sourced network.subr to enumerate the addresses and delete each explicitly. This also handles multiple addresses without relying on the exit status of an empty deletion. The behavior depends on ifconfig, not the VF hardware, so no device-specific fallback is needed. Fixes: c68595695679 ("hyperv: Add VF bringup scripts and devd rules.") Sponsored by: BBOX.io (cherry picked from commit 90f7956ff61f537def0d0aeb6ee03605a671d57e) --- contrib/hyperv/tools/scripts/hyperv_vfup | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/contrib/hyperv/tools/scripts/hyperv_vfup b/contrib/hyperv/tools/scripts/hyperv_vfup index 7a2bc595c212..e637c6c32e02 100644 --- a/contrib/hyperv/tools/scripts/hyperv_vfup +++ b/contrib/hyperv/tools/scripts/hyperv_vfup @@ -71,14 +71,8 @@ then # configured by dhclient. laggX will take over the # network operations. # - while true - do - ifconfig $hn -alias > /dev/null 2>&1 - if [ $? -ne 0 ] - then - break - fi - done + # Enumerate addresses; an empty ifconfig -alias may return success. + ipv4_down $hn # TODO: Remove IPv6 addresses on hnX