Home | History | Annotate | Download | only in net

Lines Matching defs:ifv_hash

164 	struct pslist_entry ifv_hash;
231 } ifv_hash __cacheline_aligned = {
283 mutex_init(&ifv_hash.lock, MUTEX_DEFAULT, IPL_NONE);
307 mutex_destroy(&ifv_hash.lock);
522 PSLIST_ENTRY_INIT(ifv, ifv_hash);
523 idx = vlan_tag_hash(vid, ifv_hash.mask);
525 mutex_enter(&ifv_hash.lock);
526 PSLIST_WRITER_INSERT_HEAD(&ifv_hash.lists[idx], ifv, ifv_hash);
527 mutex_exit(&ifv_hash.lock);
642 mutex_enter(&ifv_hash.lock);
643 PSLIST_WRITER_REMOVE(ifv, ifv_hash);
645 mutex_exit(&ifv_hash.lock);
646 PSLIST_ENTRY_DESTROY(ifv, ifv_hash);
685 ifv_hash.lists = hashinit(VLAN_TAG_HASH_SIZE, HASH_PSLIST, true,
686 &ifv_hash.mask);
694 mutex_enter(&ifv_hash.lock);
696 for (i = 0; i < ifv_hash.mask + 1; i++) {
697 if (PSLIST_WRITER_FIRST(&ifv_hash.lists[i], struct ifvlan,
698 ifv_hash) != NULL) {
699 mutex_exit(&ifv_hash.lock);
704 for (i = 0; i < ifv_hash.mask + 1; i++)
705 PSLIST_DESTROY(&ifv_hash.lists[i]);
707 mutex_exit(&ifv_hash.lock);
709 hashdone(ifv_hash.lists, HASH_PSLIST, ifv_hash.mask);
711 ifv_hash.lists = NULL;
712 ifv_hash.mask = 0;
761 idx = vlan_tag_hash(tag, ifv_hash.mask);
764 PSLIST_READER_FOREACH(sc, &ifv_hash.lists[idx], struct ifvlan,
765 ifv_hash) {