From nobody Mon Aug 24 00:53:41 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 4hSsq94f8Yz6q2D3 for ; Mon, 24 Aug 2026 00:53:41 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hSsq931Hzz3vkJ for ; Mon, 24 Aug 2026 00:53:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787532821; 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=lUCsguhFsilWXRFebvh3myrtJml80SWOKKBvNpt8YA8=; b=wrDk2Wf95EZqazU3Uvlb0XyVNs9Y5PM0tQTTXUVv8V51A25gD5Vwj9tLgUObD3qCn6QdXe 6bis8ew1nfLD30W/RNgRLhnHzyLIn1ukzJ2h4MUBhceK45ofnN8i2AAoJOksIuM+tviCpA QGCED2xdfHLhMBb7Y07AMf9b6Db7FP91nRilDbgsaA+FhRVpfKKjgs6C9S5Bp4hyhBaO/o 6Krh+pKL6Vfvqyfuh6Elskpfo16Ma5BjRP9rEMAxQT8y84VlM7lUGQlAPC/+Vj9sOlP2JX 3SMt4wSlu3u9J4+ZYLm//LiwHrYPNxLAX/bxgqgMWS4iXyJZ2FSl2/5TwiuXdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787532821; a=rsa-sha256; cv=none; b=RndyOWP/1hkbM2OyaNYPutWtEOM1mI9Qpk9jArXTM9p4rq4ZSYfHC4oXZH0SIdbZ7qunM2 gRk8ansvzRFyGkC83bqBmuh6Fcl5pU3sW2JQAE7yhggAkjwa1nKbIACnt4tLA8RTUbuqP7 48MvbXpjeiRXymdZ4b3OXaG3sZtfoQ9QgTiFNj3Yz9K3RwRfdR8wLQvcuPfHePaA/3Bknu SRleMFayU1xCOiiEMVpOIDil8QtRmKXF63KuGMWicIEVrNNs5JP6Q+OaeKBbdYMKxfeDQ8 8FUtyWnx+OWTcJYURznxLi9ih1mdEAx9TLumP50qaPcBLIUBoCwe2t80Kh/i8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787532821; 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=lUCsguhFsilWXRFebvh3myrtJml80SWOKKBvNpt8YA8=; b=e8hNsu4aebPNVaLgh6Pqpie+gW5i6lIBQhq3EZP2PVYJLF7WyyNAEUf3wAm+sBDiI268c4 0M7knJVHFKHdjjVE0xIpj5hC4jTUexPmEFAXjePaEsKEitx1PGgXwe8b2mtZxN5xngDCyS emNFjoyUizfwj/gYQTOCm99Fun2WHitZa17yDbUmQj1Kv7w/DN7q/uqv+DjuGVpDC8hdR6 pNi+hkJwebS1tphvAQRx5rbp/LbZQsm9eD5/O32t0Op6cw1J/f+Qk1w21yQhxnTNb3UdZp AyHg578WaKTp+AUglI+rywx5xmGBaLruFkiYeYgPhDb4iX/ADU5CzZWgbA4VBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hSsq91XbPzhwl for ; Mon, 24 Aug 2026 00:53:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33227 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 24 Aug 2026 00:53:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 5c8421c67465 - stable/15 - iavf: Do not publish link-up while stopped List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: 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: 5c8421c6746556302e034caacbd0c0e942af6a81 Auto-Submitted: auto-generated Date: Mon, 24 Aug 2026 00:53:41 +0000 Message-Id: <6a8b9615.33227.6cefaa96@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=5c8421c6746556302e034caacbd0c0e942af6a81 commit 5c8421c6746556302e034caacbd0c0e942af6a81 Author: Kevin Bowling AuthorDate: 2026-08-10 04:00:46 +0000 Commit: Kevin Bowling CommitDate: 2026-08-24 00:49:31 +0000 iavf: Do not publish link-up while stopped A PF link event remains cached while a VF is administratively down. Media status queries called iavf_update_link_status() and published that cached state as link-up, while the stopped admin path immediately published link-down. Consumers reacting to link events could turn this into an unbounded notification loop and prevent interface detach from draining its link-state task. Keep the cached PF state, but only publish link-up after iflib has marked the VF running. A subsequent admin pass publishes the cached state after a successful initialization. (cherry picked from commit 46241b7d6647dfc2fc557c02804d20b9f05af5c4) --- sys/dev/iavf/if_iavf_iflib.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c index 77c85f4212af..82ba7a92b008 100644 --- a/sys/dev/iavf/if_iavf_iflib.c +++ b/sys/dev/iavf/if_iavf_iflib.c @@ -2065,8 +2065,18 @@ void iavf_update_link_status(struct iavf_sc *sc) { struct iavf_vsi *vsi = &sc->vsi; + if_t ifp; u64 baudrate; + ifp = iflib_get_ifp(vsi->ctx); + if ((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0) { + if (vsi->link_active) { + vsi->link_active = false; + iflib_link_state_change(vsi->ctx, LINK_STATE_DOWN, 0); + } + return; + } + if (sc->link_up){ if (vsi->link_active == FALSE) { vsi->link_active = TRUE;