Destroy UDP UMA zones (empty or not) upon network stack teardown

to not leak them making the VM subsystem unhappy with every stoped vnet(*).
We will still leak pages (especially as zones are marked NOFREE).

(*) This will also keep vmstat -z more usable.

Sponsored by:	ISPsystem
MFC after:	5 days
This commit is contained in:
Bjoern A. Zeeb 2010-03-06 21:24:32 +00:00
parent 66f80e90ef
commit 391dab1c2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204807

View File

@ -245,6 +245,9 @@ udp_destroy(void)
V_udbinfo.ipi_hashmask);
hashdestroy(V_udbinfo.ipi_porthashbase, M_PCB,
V_udbinfo.ipi_porthashmask);
uma_zdestroy(V_udpcb_zone);
uma_zdestroy(V_udbinfo.ipi_zone);
INP_INFO_LOCK_DESTROY(&V_udbinfo);
}
#endif