From nobody Wed Feb 4 01:21:37 2026 X-Original-To: dev-commits-src-main@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 4f5MyK04n7z6FP6T; Wed, 04 Feb 2026 01:21:45 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f5MyJ6Hmpz3Lpn; Wed, 04 Feb 2026 01:21:44 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770168104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c5GC4p+VSBQPkDu0/sjXxrbJvmn3OKGoDgP6K7ukARk=; b=tV3A23P9+h08KSIIoTF9eP5U19xMTlysxlbHkgRvJgzXi520/jTblmrqKg7rkk/0Oa0ltt 7vV6vm40UqS38mJ7cer1nfgpble9X7OatmItEDzcJfbcYbDLA7/2WynZdXo6O6wKYS9i5b b9aTu6TTG5rj4hHa5RmcZ2n59Eo+llNr3BOsK5PG6lPiKDvYwCRWcpbUPXP1gAoca0Jca2 hn/VqpOwjyXvp1RocPVRgMh+68keURE5soyx942j9U4ttAJpwjE2LDDJ8Oms1B6jJcW/Kl T35N1lCvZUaXfhNZ6NnDHvgEaw0pOFvs4IiwpCj2gdBsHfW/vkrRXzPKP8nDVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770168104; a=rsa-sha256; cv=none; b=qLLaUhC5AumQHyrAdpmxbIXBgvOVyth4mhSodLLzh0UkLfslIndpPEwmyLyI3+MEqvc1Uo GvgOiu5hHOMmOSQgAxAGg+dE0q3ziGe0OajoxFgLwd139Hea/lt8FXeZvT22rjIPVtqU97 4MlCGazwDDAU7RtG5vG0G1c9SRxmGdu7tJ+ts18RVVwrzHHDTka3lDv+JPPei6XwEN2WgH eKki6LQR4ZsOME2RRg9UCNMAdyR4UOQkydVwWUSoOvTKqwHObZkbj4jKVyFNYMx/1ncuV1 9bGr1PRZD8qFHKseg3BoN8NCBLee/uDjrMzvq3DSGK24hP0hCjNfkwT7R8LXUQ== 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=1770168104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c5GC4p+VSBQPkDu0/sjXxrbJvmn3OKGoDgP6K7ukARk=; b=EQr/msJvCtwY9RAx5PhTjxJygztOha0mmNzHghD+aSCnmn9XlU42yFi0A90yYJsYrSDxlj UGPf2ymaSuDPNFMAF2JGn2I8DGxTsrDLnzDDFYxoIL4MUhslt1+pWfW8fnDWOsjfBBZ7If GURalanVMVguUI/MixVeuNUXybQkjzF+odgrhQO52QyV1fa9OBpdSM0bERwjJNGFOrEEY5 L6VNitUofXYCFMNs4fkzbliDtDW1xmz6v+w8fh227XONApa0ebgN3MhBIYUnN58a0NR0yu 4ioS4udyHooUi+Z3DoqW284+mwLRl6w6tzKc04R77hmweFIkXn944Y5eEn1Aug== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4f5MyH1NGSzC99; Wed, 04 Feb 2026 01:21:42 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: git: 349fcf079ca3 - main - net: add ifnet_rename_event EVENTHANDLER(9) for interface renaming From: Zhenlei Huang In-Reply-To: Date: Wed, 4 Feb 2026 09:21:37 +0800 Cc: Gleb Smirnoff , src-committers@freebsd.org, "" , dev-commits-src-main@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <6948abb4.37a66.71609f61@gitrepo.freebsd.org> To: Mark Johnston X-Mailer: Apple Mail (2.3696.120.41.1.10) > On Feb 4, 2026, at 5:16 AM, Mark Johnston wrote: >=20 > On Mon, Dec 22, 2025 at 02:23:48AM +0000, Gleb Smirnoff wrote: >> The branch main has been updated by glebius: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D349fcf079ca32d5c93e45366d2b27638= 747affeb >>=20 >> commit 349fcf079ca32d5c93e45366d2b27638747affeb >> Author: Gleb Smirnoff >> AuthorDate: 2025-12-21 21:31:43 +0000 >> Commit: Gleb Smirnoff >> CommitDate: 2025-12-22 02:23:14 +0000 >>=20 >> net: add ifnet_rename_event EVENTHANDLER(9) for interface renaming >>=20 >> and don't trigger ifnet_arrival_event and ifnet_departure_event = for a >> rename, as the interface isn't being detached from any protocol. = The >> consumers of the arrival/departure events are divided into a few >> categories: >> - which indeed need to do the same actions as if interface was = fully >> detached and attached: routing socket and netlink notifications = to >> userland and the Linux sysfs. All addressed by this commit. >> - which build their logic based on an interface name, but should = actually >> update their database on rename: packet filters. This commit = leaves >> them with the old behavior - emulate full detach & attach, but = this >> should be improved. >> - which shouldn't do anything on rename, not touched by the = commit. >> - ng_ether and if_tuntap, that are special and will be addressed = by >> separate commits. >=20 > Can we get rid of the IFF_RENAMING flag now? IIUC all of its uses are > in ifnet_departure_event handlers to short-circuit the handler because > the interface is not actually going away. Now that we have ifnet_rename_event, I think the flag IFF_RENAMING is not longer required. Well there're still some consumers, they should be cleaned up prior to = retire IFF_RENAMING. >=20 Best regards, Zhenlei