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
151 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
192 struct net_bridge *br = joining->br; in nbp_switchdev_hwdom_set() local
197 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_set()
204 hwdom = find_next_zero_bit(&br->busy_hwdoms, BR_HWDOM_MAX, 1); in nbp_switchdev_hwdom_set()
208 set_bit(hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_set()
215 struct net_bridge *br = leaving->br; in nbp_switchdev_hwdom_put() local
219 list_for_each_entry(p, &br->port_list, list) { in nbp_switchdev_hwdom_put()
224 clear_bit(leaving->hwdom, &br->busy_hwdoms); in nbp_switchdev_hwdom_put()
289 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
296 br_switchdev_fdb_populate(br, &item, fdb, ctx); in br_switchdev_fdb_replay_one()
307 struct net_bridge *br; in br_switchdev_fdb_replay() local
317 br = netdev_priv(br_dev); in br_switchdev_fdb_replay()
326 hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) { in br_switchdev_fdb_replay()
327 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
349 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_attr_replay() local
358 vg = br_vlan_group(br); in br_switchdev_vlan_attr_replay()
440 struct net_bridge *br = netdev_priv(br_dev); in br_switchdev_vlan_replay() local
458 err = br_switchdev_vlan_replay_group(nb, br_dev, br_vlan_group(br), in br_switchdev_vlan_replay()
463 list_for_each_entry(p, &br->port_list, list) { in br_switchdev_vlan_replay()
495 struct net_bridge *br = port->br; in br_switchdev_mdb_complete() local
500 spin_lock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
501 mp = br_mdb_ip_get(br, &data->ip); in br_switchdev_mdb_complete()
504 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_complete()
511 spin_unlock_bh(&br->multicast_lock); in br_switchdev_mdb_complete()
651 struct net_bridge *br; in br_switchdev_mdb_replay() local
664 br = netdev_priv(br_dev); in br_switchdev_mdb_replay()
666 if (!br_opt_get(br, BROPT_MULTICAST_ENABLED)) in br_switchdev_mdb_replay()
679 hlist_for_each_entry_rcu(mp, &br->mdb_list, mdb_node) { in br_switchdev_mdb_replay()
741 struct net_device *br_dev = p->br->dev; in nbp_switchdev_sync_objs()
766 struct net_device *br_dev = p->br->dev; in nbp_switchdev_unsync_objs()