diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-12-07 17:55:38 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-12-07 17:55:38 +0000 |
commit | 294a609fc07d5cf26ee430b0015d9846b81c8e5c (patch) | |
tree | edb17961c7d60450510878c9191e5f67ca23520f | |
parent | 446ccdd08e2a9f704f6348cd7f679e59183b99b3 (diff) | |
download | src-294a609fc07d5cf26ee430b0015d9846b81c8e5c.tar.gz src-294a609fc07d5cf26ee430b0015d9846b81c8e5c.zip |
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.
-rw-r--r-- | sys/netinet/udp_usrreq.c | 10 |
1 files changed, 1 insertions, 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 |