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.
This commit is contained in:
Gleb Smirnoff 2022-12-07 09:55:38 -08:00
parent 446ccdd08e
commit 294a609fc0

View file

@ -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