Lines Matching refs:br

125 static void br_switchdev_fdb_populate(struct net_bridge *br,  in br_switchdev_fdb_populate()  argument
138 item->info.dev = (!p || item->is_local) ? br->dev : p->dev; in br_switchdev_fdb_populate()
143 br_switchdev_fdb_notify(struct net_bridge *br, in br_switchdev_fdb_notify() argument
162 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
203 struct net_bridge *br = joining->br; in nbp_switchdev_hwdom_set() local
208 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_set()
215 hwdom = find_next_zero_bit(&br->busy_hwdoms, BR_HWDOM_MAX, 1); in nbp_switchdev_hwdom_set()
219 set_bit(hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_set()
226 struct net_bridge *br = leaving->br; in nbp_switchdev_hwdom_put() local
230 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_put()
235 clear_bit(leaving->hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_put()
300 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
307 br_switchdev_fdb_populate(br, &item, fdb, ctx); in br_switchdev_fdb_replay_one()
318 struct net_bridge *br; in br_switchdev_fdb_replay() local
328 br = netdev_priv(br_dev); in br_switchdev_fdb_replay()
337 hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) { in br_switchdev_fdb_replay()
338 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
360 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_attr_replay() local
369 vg = br_vlan_group(br); in br_switchdev_vlan_attr_replay()
451 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_replay() local
469 err = br_switchdev_vlan_replay_group(nb, br_dev, br_vlan_group(br), in br_switchdev_vlan_replay()
474 list_for_each_entry(p, &br->port_list, list) { in br_switchdev_vlan_replay()
506 struct net_bridge *br = port->br; in br_switchdev_mdb_complete() local
511 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
512 mp = br_mdb_ip_get(br, &data->ip); in br_switchdev_mdb_complete()
515 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_complete()
522 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
681 struct net_bridge *br; in br_switchdev_mdb_replay() local
694 br = netdev_priv(br_dev); in br_switchdev_mdb_replay()
696 if (!br_opt_get(br, BROPT_MULTICAST_ENABLED)) in br_switchdev_mdb_replay()
711 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
713 hlist_for_each_entry(mp, &br->mdb_list, mdb_node) { in br_switchdev_mdb_replay()
722 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
727 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_replay()
736 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
742 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_replay()
772 struct net_device *br_dev = p->br->dev; in nbp_switchdev_sync_objs()
799 struct net_device *br_dev = p->br->dev; in nbp_switchdev_unsync_objs()