Lines Matching refs:br
126 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
148 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
188 struct net_bridge *br = joining->br; in nbp_switchdev_hwdom_set() local
193 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_set()
200 hwdom = find_next_zero_bit(&br->busy_hwdoms, BR_HWDOM_MAX, 1); in nbp_switchdev_hwdom_set()
204 set_bit(hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_set()
211 struct net_bridge *br = leaving->br; in nbp_switchdev_hwdom_put() local
215 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_put()
220 clear_bit(leaving->hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_put()
285 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
292 br_switchdev_fdb_populate(br, &item, fdb, ctx); in br_switchdev_fdb_replay_one()
303 struct net_bridge *br; in br_switchdev_fdb_replay() local
313 br = netdev_priv(br_dev); in br_switchdev_fdb_replay()
322 hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) { in br_switchdev_fdb_replay()
323 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
363 struct net_bridge *br; in br_switchdev_vlan_replay() local
380 br = netdev_priv(dev); in br_switchdev_vlan_replay()
381 vg = br_vlan_group(br); in br_switchdev_vlan_replay()
388 br = p->br; in br_switchdev_vlan_replay()
434 struct net_bridge *br = port->br; in br_switchdev_mdb_complete() local
439 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
440 mp = br_mdb_ip_get(br, &data->ip); in br_switchdev_mdb_complete()
443 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_complete()
450 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
590 struct net_bridge *br; in br_switchdev_mdb_replay() local
603 br = netdev_priv(br_dev); in br_switchdev_mdb_replay()
605 if (!br_opt_get(br, BROPT_MULTICAST_ENABLED)) in br_switchdev_mdb_replay()
618 hlist_for_each_entry_rcu(mp, &br->mdb_list, mdb_node) { in br_switchdev_mdb_replay()
680 struct net_device *br_dev = p->br->dev; in nbp_switchdev_sync_objs()
706 struct net_device *br_dev = p->br->dev; in nbp_switchdev_unsync_objs()