Lines Matching refs:ipst

99 ipmp_init(ip_stack_t *ipst)  in ipmp_init()  argument
101 ipst->ips_ipmp_grp_hash = mod_hash_create_extended("ipmp_grp_hash", in ipmp_init()
104 rw_init(&ipst->ips_ipmp_lock, NULL, RW_DEFAULT, 0); in ipmp_init()
111 ipmp_destroy(ip_stack_t *ipst) in ipmp_destroy() argument
113 mod_hash_destroy_hash(ipst->ips_ipmp_grp_hash); in ipmp_destroy()
114 rw_destroy(&ipst->ips_ipmp_lock); in ipmp_destroy()
128 ip_stack_t *ipst = PHYINT_TO_IPST(phyi); in ipmp_grp_create() local
131 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_create()
156 if (mod_hash_reserve_nosleep(ipst->ips_ipmp_grp_hash, &mh) != 0) { in ipmp_grp_create()
198 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_update_kstats() local
224 rw_enter(&ipst->ips_ill_g_lock, RW_READER); in ipmp_grp_update_kstats()
255 rw_exit(&ipst->ips_ill_g_lock); in ipmp_grp_update_kstats()
277 ipmp_grp_lookup(const char *grname, ip_stack_t *ipst) in ipmp_grp_lookup() argument
281 ASSERT(RW_LOCK_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_lookup()
283 if (mod_hash_find(ipst->ips_ipmp_grp_hash, (mod_hash_key_t)grname, in ipmp_grp_lookup()
297 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_info() local
299 ASSERT(RW_LOCK_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_info()
328 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_insert() local
330 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_insert()
336 err = mod_hash_insert_reserve(ipst->ips_ipmp_grp_hash, in ipmp_grp_insert()
356 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_remove() local
358 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_remove()
360 err = mod_hash_remove(ipst->ips_ipmp_grp_hash, key, &val); in ipmp_grp_remove()
375 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_rename() local
377 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_rename()
382 if (mod_hash_find(ipst->ips_ipmp_grp_hash, (mod_hash_key_t)grname, in ipmp_grp_rename()
390 if (mod_hash_reserve_nosleep(ipst->ips_ipmp_grp_hash, &mh) != 0) in ipmp_grp_rename()
407 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_destroy() local
409 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_destroy()
441 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_vet_ill() local
444 ASSERT(RW_LOCK_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_vet_ill()
514 ip_stack_t *ipst = IPMP_GRP_TO_IPST(grp); in ipmp_grp_vet_phyint() local
517 ASSERT(RW_LOCK_HELD(&ipst->ips_ipmp_lock)); in ipmp_grp_vet_phyint()
707 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_next_ill() local
711 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_illgrp_next_ill()
717 rw_exit(&ipst->ips_ipmp_lock); in ipmp_illgrp_next_ill()
731 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_hold_next_ill() local
733 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_illgrp_hold_next_ill()
741 rw_exit(&ipst->ips_ipmp_lock); in ipmp_illgrp_hold_next_ill()
745 rw_exit(&ipst->ips_ipmp_lock); in ipmp_illgrp_hold_next_ill()
758 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_hold_cast_ill() local
760 rw_enter(&ipst->ips_ipmp_lock, RW_READER); in ipmp_illgrp_hold_cast_ill()
763 rw_exit(&ipst->ips_ipmp_lock); in ipmp_illgrp_hold_cast_ill()
766 rw_exit(&ipst->ips_ipmp_lock); in ipmp_illgrp_hold_cast_ill()
779 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_set_cast() local
810 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_illgrp_set_cast()
812 rw_exit(&ipst->ips_ipmp_lock); in ipmp_illgrp_set_cast()
980 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_find_ill() local
982 ASSERT(IAM_WRITER_ILL(ipmp_ill) || RW_LOCK_HELD(&ipst->ips_ill_g_lock)); in ipmp_illgrp_find_ill()
1061 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_link_grp() local
1063 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_illgrp_link_grp()
1082 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_illgrp_unlink_grp() local
1084 ASSERT(RW_WRITE_HELD(&ipst->ips_ipmp_lock)); in ipmp_illgrp_unlink_grp()
1108 ip_stack_t *ipst = ill->ill_ipst; in ipmp_ill_join_illgrp() local
1120 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_ill_join_illgrp()
1125 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_join_illgrp()
1199 rw_enter(&ipst->ips_ill_g_lock, RW_WRITER); in ipmp_ill_join_illgrp()
1202 rw_exit(&ipst->ips_ill_g_lock); in ipmp_ill_join_illgrp()
1229 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_ill_leave_illgrp() local
1259 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_ill_leave_illgrp()
1264 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_leave_illgrp()
1271 rw_enter(&ipst->ips_ill_g_lock, RW_WRITER); in ipmp_ill_leave_illgrp()
1274 rw_exit(&ipst->ips_ill_g_lock); in ipmp_ill_leave_illgrp()
1430 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_ill_activate() local
1483 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_ill_activate()
1487 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_activate()
1521 ip_stack_t *ipst = IPMP_ILLGRP_TO_IPST(illg); in ipmp_ill_deactivate() local
1531 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_ill_deactivate()
1535 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_deactivate()
1595 ncec_walk(ipmp_ill, (pfi_t)ncec_delete_per_ill, ipmp_ill, ipst); in ipmp_ill_deactivate()
1651 ip_stack_t *ipst = ill->ill_ipst; in ipmp_ill_bind_ipif() local
1662 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_ill_bind_ipif()
1664 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_bind_ipif()
1700 ip_stack_t *ipst = ill->ill_ipst; in ipmp_ill_unbind_ipif() local
1723 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_ill_unbind_ipif()
1725 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_unbind_ipif()
1830 ip_stack_t *ipst = ill->ill_ipst; in ipmp_ill_hold_ipmp_ill() local
1835 rw_enter(&ipst->ips_ipmp_lock, RW_READER); in ipmp_ill_hold_ipmp_ill()
1838 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_hold_ipmp_ill()
1859 ip_stack_t *ipst = ill->ill_ipst; in ipmp_ill_hold_xmit_ill() local
1861 rw_enter(&ipst->ips_ill_g_lock, RW_READER); in ipmp_ill_hold_xmit_ill()
1866 rw_exit(&ipst->ips_ill_g_lock); in ipmp_ill_hold_xmit_ill()
1874 rw_exit(&ipst->ips_ill_g_lock); in ipmp_ill_hold_xmit_ill()
1887 ip_stack_t *ipst = ill->ill_ipst; in ipmp_ill_get_ipmp_ifindex() local
1892 rw_enter(&ipst->ips_ipmp_lock, RW_READER); in ipmp_ill_get_ipmp_ifindex()
1895 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ill_get_ipmp_ifindex()
1908 ip_stack_t *ipst = PHYINT_TO_IPST(phyi); in ipmp_phyint_join_grp() local
1932 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_phyint_join_grp()
1949 rw_exit(&ipst->ips_ipmp_lock); in ipmp_phyint_join_grp()
1960 ip_stack_t *ipst = PHYINT_TO_IPST(phyi); in ipmp_phyint_leave_grp() local
1992 rw_enter(&ipst->ips_ipmp_lock, RW_WRITER); in ipmp_phyint_leave_grp()
2004 rw_exit(&ipst->ips_ipmp_lock); in ipmp_phyint_leave_grp()
2018 ip_stack_t *ipst = PHYINT_TO_IPST(phyi); in ipmp_phyint_get_kstats() local
2022 zoneid = netstackid_to_zoneid(ipst->ips_netstack->netstack_stackid); in ipmp_phyint_get_kstats()
2088 ip_stack_t *ipst = ipif->ipif_ill->ill_ipst; in ipmp_ipif_hold_bound_ill() local
2092 rw_enter(&ipst->ips_ipmp_lock, RW_READER); in ipmp_ipif_hold_bound_ill()
2095 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ipif_hold_bound_ill()
2098 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ipif_hold_bound_ill()
2199 ip_stack_t *ipst = ncec->ncec_ipst; in ipmp_ncec_delete_nce() local
2213 rw_enter(&ipst->ips_ill_g_lock, RW_READER); in ipmp_ncec_delete_nce()
2217 rw_exit(&ipst->ips_ill_g_lock); in ipmp_ncec_delete_nce()
2233 ip_stack_t *ipst = ncec->ncec_ipst; in ipmp_ncec_refresh_nce() local
2254 rw_enter(&ipst->ips_ipmp_lock, RW_READER); in ipmp_ncec_refresh_nce()
2270 rw_exit(&ipst->ips_ipmp_lock); in ipmp_ncec_refresh_nce()