git: 5c20c75b67e3 - main - epair: Make vnet_epair_uninit() run earlier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Oct 2026 13:28:42 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=5c20c75b67e3c96d58c1bbfe82472a8371bfa161
commit 5c20c75b67e3c96d58c1bbfe82472a8371bfa161
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-10-06 22:04:54 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-10-07 13:28:28 +0000
epair: Make vnet_epair_uninit() run earlier
I can't see a reason for vnet_epair_init() and vnet_epair_uninit() to be
inconsistent in the sys(un)init run order. Move vnet_epair_uninit() to
SI_SUB_PSEUDO, which is more appropriate for software ifnet drivers.
Reviewed by: glebius
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D60388
---
sys/net/if_epair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c
index c3354bc76e64..5b00da381918 100644
--- a/sys/net/if_epair.c
+++ b/sys/net/if_epair.c
@@ -937,7 +937,7 @@ vnet_epair_uninit(const void *unused __unused)
ifc_detach_cloner(V_epair_cloner);
}
-VNET_SYSUNINIT(vnet_epair_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY,
+VNET_SYSUNINIT(vnet_epair_uninit, SI_SUB_PSEUDO, SI_ORDER_ANY,
vnet_epair_uninit, NULL);
static int