ipsec_alloc_tables
if (ipsec_alloc_tables(KM_NOSLEEP, ns) != 0) {
(void) ipsec_alloc_tables(KM_SLEEP, ns);