struct net_device *dev;
struct list_head list;
struct list_head ports_list;
- struct list_head mids_list;
+ struct list_head mdb_list;
u8 vlan_enabled:1,
multicast_enabled:1,
mrouter:1;
} else {
bridge_device->ops = bridge->bridge_8021d_ops;
}
- INIT_LIST_HEAD(&bridge_device->mids_list);
+ INIT_LIST_HEAD(&bridge_device->mdb_list);
+
if (list_empty(&bridge->bridges_list))
mlxsw_sp_fdb_notify_work_schedule(bridge->mlxsw_sp, false);
list_add(&bridge_device->list, &bridge->bridges_list);
if (bridge_device->vlan_enabled)
bridge->vlan_enabled_exists = false;
WARN_ON(!list_empty(&bridge_device->ports_list));
- WARN_ON(!list_empty(&bridge_device->mids_list));
+ WARN_ON(!list_empty(&bridge_device->mdb_list));
kfree(bridge_device);
}
{
struct mlxsw_sp_mdb_entry *mdb_entry;
- list_for_each_entry(mdb_entry, &bridge_device->mids_list, list)
+ list_for_each_entry(mdb_entry, &bridge_device->mdb_list, list)
mlxsw_sp_smid_router_port_set(mlxsw_sp, mdb_entry->mid, add);
}
{
struct mlxsw_sp_mdb_entry *mdb_entry;
- list_for_each_entry(mdb_entry, &bridge_device->mids_list, list) {
+ list_for_each_entry(mdb_entry, &bridge_device->mdb_list, list) {
if (ether_addr_equal(mdb_entry->addr, addr) &&
mdb_entry->fid == fid)
return mdb_entry;
goto err_write_mdb_entry;
out:
- list_add_tail(&mdb_entry->list, &bridge_device->mids_list);
+ list_add_tail(&mdb_entry->list, &bridge_device->mdb_list);
return mdb_entry;
err_write_mdb_entry:
struct mlxsw_sp_mdb_entry *mdb_entry;
int err;
- list_for_each_entry(mdb_entry, &bridge_device->mids_list, list) {
+ list_for_each_entry(mdb_entry, &bridge_device->mdb_list, list) {
if (mc_enabled)
err = mlxsw_sp_mc_write_mdb_entry(mlxsw_sp, mdb_entry,
bridge_device);
err_mdb_entry_update:
list_for_each_entry_continue_reverse(mdb_entry,
- &bridge_device->mids_list, list) {
+ &bridge_device->mdb_list, list) {
if (mc_enabled)
mlxsw_sp_mc_remove_mdb_entry(mlxsw_sp, mdb_entry);
else
bridge_device = bridge_port->bridge_device;
- list_for_each_entry(mdb_entry, &bridge_device->mids_list, list) {
+ list_for_each_entry(mdb_entry, &bridge_device->mdb_list, list) {
if (!test_bit(mlxsw_sp_port->local_port,
mdb_entry->ports_in_mid))
mlxsw_sp_port_smid_set(mlxsw_sp_port, mdb_entry->mid,
bridge_device = bridge_port->bridge_device;
- list_for_each_entry_safe(mdb_entry, tmp, &bridge_device->mids_list,
+ list_for_each_entry_safe(mdb_entry, tmp, &bridge_device->mdb_list,
list) {
if (test_bit(local_port, mdb_entry->ports_in_mid)) {
__mlxsw_sp_port_mdb_del(mlxsw_sp_port, bridge_port,