Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2022 17:57:07 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 294a609fc07d - main - udp: destroy UDP and UDP-Lite inpcbinfos in single SYSUNINIT
Message-ID:  <202212071757.2B7Hv7q2057590@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

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

commit 294a609fc07d5cf26ee430b0015d9846b81c8e5c
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-12-07 17:55:38 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-12-07 17:55:38 +0000

    udp: destroy UDP and UDP-Lite inpcbinfos in single SYSUNINIT
    
    They are created in a single SYSINIT, there is no reason to destroy
    them in separate functions.
---
 sys/netinet/udp_usrreq.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 5110d63e1092..e8aaf1f11134 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -237,18 +237,10 @@ udp_destroy(void *unused __unused)
 {
 
 	in_pcbinfo_destroy(&V_udbinfo);
+	in_pcbinfo_destroy(&V_ulitecbinfo);
 	uma_zdestroy(V_udpcb_zone);
 }
 VNET_SYSUNINIT(udp, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH, udp_destroy, NULL);
-
-static void
-udplite_destroy(void *unused __unused)
-{
-
-	in_pcbinfo_destroy(&V_ulitecbinfo);
-}
-VNET_SYSUNINIT(udplite, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH, udplite_destroy,
-    NULL);
 #endif
 
 #ifdef INET



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212071757.2B7Hv7q2057590>