Lines Matching full:br
128 static void br_switchdev_fdb_populate(struct net_bridge *br, in br_switchdev_fdb_populate() argument
141 item->info.dev = (!p || item->is_local) ? br->dev : p->dev; in br_switchdev_fdb_populate()
146 br_switchdev_fdb_notify(struct net_bridge *br, in br_switchdev_fdb_notify() argument
165 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
206 struct net_bridge *br = joining->br; in nbp_switchdev_hwdom_set() local
211 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_set()
218 hwdom = find_next_zero_bit(&br->busy_hwdoms, BR_HWDOM_MAX, 1); in nbp_switchdev_hwdom_set()
222 set_bit(hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_set()
229 struct net_bridge *br = leaving->br; in nbp_switchdev_hwdom_put() local
233 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_put()
238 clear_bit(leaving->hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_put()
303 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
310 br_switchdev_fdb_populate(br, &item, fdb, ctx); in br_switchdev_fdb_replay_one()
321 struct net_bridge *br; in br_switchdev_fdb_replay() local
331 br = netdev_priv(br_dev); in br_switchdev_fdb_replay()
340 hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) { in br_switchdev_fdb_replay()
341 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
363 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_attr_replay() local
372 vg = br_vlan_group(br); in br_switchdev_vlan_attr_replay()
454 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_replay() local
472 err = br_switchdev_vlan_replay_group(nb, br_dev, br_vlan_group(br), in br_switchdev_vlan_replay()
477 list_for_each_entry(p, &br->port_list, list) { in br_switchdev_vlan_replay()
509 struct net_bridge *br = port->br; in br_switchdev_mdb_complete() local
515 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
516 mp = br_mdb_ip_get(br, &data->ip); in br_switchdev_mdb_complete()
519 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_complete()
526 if (br_mdb_should_notify(br, old_flags ^ p->flags)) in br_switchdev_mdb_complete()
527 br_mdb_flag_change_notify(br->dev, mp, p); in br_switchdev_mdb_complete()
530 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
629 * br->mdb_list, whereas actual event delivery may be in br_switchdev_mdb_queue_one()
689 struct net_bridge *br; in br_switchdev_mdb_replay() local
702 br = netdev_priv(br_dev); in br_switchdev_mdb_replay()
704 if (!br_opt_get(br, BROPT_MULTICAST_ENABLED)) in br_switchdev_mdb_replay()
719 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
721 hlist_for_each_entry(mp, &br->mdb_list, mdb_node) { in br_switchdev_mdb_replay()
730 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
735 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_replay()
744 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
750 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
780 struct net_device *br_dev = p->br->dev; in nbp_switchdev_sync_objs()
807 struct net_device *br_dev = p->br->dev; in nbp_switchdev_unsync_objs()