git: b3a94e07182b - stable/15 - epair: Make vnet_epair_uninit() run earlier

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 22 Oct 2026 17:32:16 UTC
The branch stable/15 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=b3a94e07182b3b2e495d529410cbb4802a66cab4

commit b3a94e07182b3b2e495d529410cbb4802a66cab4
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-10-06 22:04:54 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-10-22 15:45:41 +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
    
    (cherry picked from commit 5c20c75b67e3c96d58c1bbfe82472a8371bfa161)
---
 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 60849ca1d4f2..22a6b985ead7 100644
--- a/sys/net/if_epair.c
+++ b/sys/net/if_epair.c
@@ -924,7 +924,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