From nobody Wed Sep 16 19:51:08 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 4hlTz62H5Wz6sFkY for ; Wed, 16 Sep 2026 19:51:14 +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 4hlTz60Zk2z4ZQd for ; Wed, 16 Sep 2026 19:51:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789588274; 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=Gaq0FGfNp0jbjgeeVfJCu3B+5VumlQVIyR5Y/5ClCK8=; b=ugm+A54o0NmYqoKre1pozqXkRaYjtQzpxfJ7qPnBytYFUdK2PgiUCt/mRCva88mRk8we2r LHRRUxwK1Kzi7ulB8BNbvBrLjFOVdSrpUMWLaCa/DNENSStLh+hD3KeEWC0jXOdcliCGyh Ikc2Bug5usvzPpaI+XdsV70dPEHBtZ5ep5aQvfQpYQH+JTlLRHb5lZNNmSBQKDwaNhXmpb Rzqku4eoBUrlmqHJ8j3ycBkRaT34mWG1uSSYAa37xQIqW5B7fObbz/VYkGWy7QAM/nE8/q Q8/fqgaN85KQXfy02XSK4cIRa1G9XCnuoTWLeBTCZSPTvBMEYGrICKytkAvpzQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789588274; b=Z6cgXO1OE19TNR79YJ/6Eejhnu6eme52aIG8KRuVE2YjWwAO34gxYY/j3MulNPyYv4BSzR uTEiyRT3JS83K4IVBCg6Fka9SJhuM1C0GVaX92VTIHbdl300nYm6mClx0xLV/U9BniJgR5 O0xUy8NfyYeTVdoFJ8lVglGEXUGM/VXQ6Zp73lBuYD/feB2BXq9RFty6KBzR3N+PGsK12n 6s8HUstPqK8Jung8FcRMieEHfprA/mTPn36tw2JB+/aS6klMflfp2FtCQ6yxL8XYB9L3TY YyRqDGOzZAPGm2yddH7ZA0vMJwPxb29PVTrXjEypgVPxue0dp1vrN+s5TfZKWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789588274; 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=Gaq0FGfNp0jbjgeeVfJCu3B+5VumlQVIyR5Y/5ClCK8=; b=ACt6jU/wcZMZP5XrBdQ39AmdJkuCKNd28gA02lu38mKAEYcd4Cr5Qnm28aHYuhqKEqjsPi vgeWiJqcJ8mKvQHS0nFXVpcHn1nnnI0naOHXg/FnIymoVeTqKlRBn0OUSmMHYouxU5BqwF ZBIfECej7uOq09j3Kd2rLvBlIWyhs+vdUzBc8J0hKSlGSOJl1JJSWJ03g/bK9VUHMWak4K yEJYkc100R4SI4N1qwKpiz8C6zTDPQbeL//8+XvyuS+/2oy+C5ICGOwA9fbUZY/hLrOOwB iUKrs5FtCl+JJDEpn1U/O4y2MRDfuSraJD+ecw8dzrPMjUCNv4hheipWcJGUvw== 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 4hlTz56nJhz11Yx for ; Wed, 16 Sep 2026 19:51:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c22e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 16 Sep 2026 19:51:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 50b3763bab62 - main - vlan: Notify the parent when replacing a VLAN ID 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/main X-Git-Reftype: branch X-Git-Commit: 50b3763bab6295ac40f6e6a6562bd2d92a1d0768 Auto-Submitted: auto-generated Date: Wed, 16 Sep 2026 19:51:08 +0000 Message-Id: <6aaaf32c.3c22e.3a5bff8@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=50b3763bab6295ac40f6e6a6562bd2d92a1d0768 commit 50b3763bab6295ac40f6e6a6562bd2d92a1d0768 Author: Kevin Bowling AuthorDate: 2026-09-16 17:13:01 +0000 Commit: Kevin Bowling CommitDate: 2026-09-16 19:50:27 +0000 vlan: Notify the parent when replacing a VLAN ID Changing the VID of an existing VLAN interface rehashes the interface and announces the new VID, but does not unregister the old VID. Parent drivers and VLAN event consumers can consequently retain stale filter membership. After successfully inserting the new VID, emit vlan_unconfig for the old VID before the existing vlan_config notification. Do not unregister anything if insertion fails and the old VID is restored. MFC after: 2 weeks Sponsored by: BBOX.io --- sys/net/if_vlan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index ab05b4d075c7..959c68a7f32b 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1704,6 +1704,8 @@ vlan_config(struct ifvlan *ifv, struct ifnet *p, uint16_t vid, /* Re-insert back where we found it. */ ret = vlan_inshash(trunk, ifv); MPASS(ret == 0); + } else { + EVENTHANDLER_INVOKE(vlan_unconfig, p, oldvid); } } /* Will unlock */