mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
446ccdd08e
commit
294a609fc0
1 changed files with 1 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue