Lines Matching defs:eht_host

70 	struct net_bridge_group_eht_host *eht_host;
72 eht_host = br_multicast_eht_host_lookup(pg, h_addr);
73 if (!eht_host)
76 return eht_host->filter_mode;
127 static void __eht_destroy_host(struct net_bridge_group_eht_host *eht_host)
129 WARN_ON(!hlist_empty(&eht_host->set_entries));
131 br_multicast_eht_hosts_dec(eht_host->pg);
133 rb_erase(&eht_host->rb_node, &eht_host->pg->eht_host_tree);
134 RB_CLEAR_NODE(&eht_host->rb_node);
135 kfree(eht_host);
163 struct net_bridge_group_eht_host *eht_host = set_h->h_parent;
171 eht_host->num_entries--;
175 if (hlist_empty(&eht_host->set_entries))
176 __eht_destroy_host(eht_host);
245 struct net_bridge_group_eht_host *eht_host;
266 eht_host = kzalloc(sizeof(*eht_host), GFP_ATOMIC);
267 if (!eht_host)
270 memcpy(&eht_host->h_addr, h_addr, sizeof(*h_addr));
271 INIT_HLIST_HEAD(&eht_host->set_entries);
272 eht_host->pg = pg;
273 eht_host->filter_mode = filter_mode;
275 rb_link_node(&eht_host->rb_node, parent, link);
276 rb_insert_color(&eht_host->rb_node, &pg->eht_host_tree);
280 return eht_host;
286 struct net_bridge_group_eht_host *eht_host,
298 result = memcmp(&eht_host->h_addr, &this->h_addr,
310 if (!allow_zero_src && eht_host->num_entries >= PG_SRC_ENT_LIMIT)
317 memcpy(&set_h->h_addr, &eht_host->h_addr,
321 set_h->h_parent = eht_host;
325 hlist_add_head(&set_h->host_list, &eht_host->set_entries);
332 eht_host->num_entries++;
397 struct net_bridge_group_eht_host *eht_host;
400 eht_host = br_multicast_eht_host_lookup(pg, h_addr);
401 if (eht_host)
402 eht_host->filter_mode = filter_mode;
425 struct net_bridge_group_eht_host *eht_host;
438 eht_host = __eht_lookup_create_host(pg, h_addr, filter_mode);
439 if (!eht_host)
442 set_h = __eht_lookup_create_set_entry(br, eht_set, eht_host,
453 if (hlist_empty(&eht_host->set_entries))
454 __eht_destroy_host(eht_host);
491 struct net_bridge_group_eht_host *eht_host;
494 eht_host = br_multicast_eht_host_lookup(pg, h_addr);
495 if (!eht_host)
498 hlist_for_each_entry_safe(set_h, tmp, &eht_host->set_entries, host_list)