Lines Matching refs:br

127 static void br_switchdev_fdb_populate(struct net_bridge *br,  in br_switchdev_fdb_populate()  argument
139 item->info.dev = (!p || item->is_local) ? br->dev : p->dev; in br_switchdev_fdb_populate()
144 br_switchdev_fdb_notify(struct net_bridge *br, in br_switchdev_fdb_notify() argument
149 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
190 struct net_bridge *br = joining->br; in nbp_switchdev_hwdom_set() local
195 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_set()
202 hwdom = find_next_zero_bit(&br->busy_hwdoms, BR_HWDOM_MAX, 1); in nbp_switchdev_hwdom_set()
206 set_bit(hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_set()
213 struct net_bridge *br = leaving->br; in nbp_switchdev_hwdom_put() local
217 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_put()
222 clear_bit(leaving->hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_put()
287 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
294 br_switchdev_fdb_populate(br, &item, fdb, ctx); in br_switchdev_fdb_replay_one()
305 struct net_bridge *br; in br_switchdev_fdb_replay() local
315 br = netdev_priv(br_dev); in br_switchdev_fdb_replay()
324 hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) { in br_switchdev_fdb_replay()
325 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
347 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_attr_replay() local
356 vg = br_vlan_group(br); in br_switchdev_vlan_attr_replay()
438 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_replay() local
456 err = br_switchdev_vlan_replay_group(nb, br_dev, br_vlan_group(br), in br_switchdev_vlan_replay()
461 list_for_each_entry(p, &br->port_list, list) { in br_switchdev_vlan_replay()
493 struct net_bridge *br = port->br; in br_switchdev_mdb_complete() local
498 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
499 mp = br_mdb_ip_get(br, &data->ip); in br_switchdev_mdb_complete()
502 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_complete()
509 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
649 struct net_bridge *br; in br_switchdev_mdb_replay() local
662 br = netdev_priv(br_dev); in br_switchdev_mdb_replay()
664 if (!br_opt_get(br, BROPT_MULTICAST_ENABLED)) in br_switchdev_mdb_replay()
677 hlist_for_each_entry_rcu(mp, &br->mdb_list, mdb_node) { in br_switchdev_mdb_replay()
739 struct net_device *br_dev = p->br->dev; in nbp_switchdev_sync_objs()
764 struct net_device *br_dev = p->br->dev; in nbp_switchdev_unsync_objs()