The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=90f7956ff61f537def0d0aeb6ee03605a671d57e
commit 90f7956ff61f537def0d0aeb6ee03605a671d57e Author: Kevin Bowling <[email protected]> AuthorDate: 2026-09-15 01:07:27 +0000 Commit: Kevin Bowling <[email protected]> CommitDate: 2026-09-15 02:02:54 +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.") MFC after: 2 weeks Sponsored by: BBOX.io --- 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
