Searched refs:mdb_entry (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_mdb.c | 31 struct lan966x_mdb_entry *mdb_entry, *tmp; in lan966x_mdb_purge_mdb_entries() local 33 list_for_each_entry_safe(mdb_entry, tmp, &lan966x->mdb_entries, list) { in lan966x_mdb_purge_mdb_entries() 34 list_del(&mdb_entry->list); in lan966x_mdb_purge_mdb_entries() 35 kfree(mdb_entry); in lan966x_mdb_purge_mdb_entries() 60 struct lan966x_mdb_entry *mdb_entry; in lan966x_mdb_entry_get() local 62 list_for_each_entry(mdb_entry, &lan966x->mdb_entries, list) { in lan966x_mdb_entry_get() 63 if (ether_addr_equal(mdb_entry->mac, mac) && in lan966x_mdb_entry_get() 64 mdb_entry->vid == vid) in lan966x_mdb_entry_get() 65 return mdb_entry; in lan966x_mdb_entry_get() 75 struct lan966x_mdb_entry *mdb_entry; in lan966x_mdb_entry_add() local [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 991 mlxsw_sp_mdb_entry_port_lookup(struct mlxsw_sp_mdb_entry *mdb_entry, in mlxsw_sp_mdb_entry_port_lookup() argument 996 list_for_each_entry(mdb_entry_port, &mdb_entry->ports_list, list) { in mlxsw_sp_mdb_entry_port_lookup() 1006 struct mlxsw_sp_mdb_entry *mdb_entry, in mlxsw_sp_mdb_entry_port_get() argument 1012 mdb_entry_port = mlxsw_sp_mdb_entry_port_lookup(mdb_entry, local_port); in mlxsw_sp_mdb_entry_port_get() 1016 mdb_entry->ports_count++; in mlxsw_sp_mdb_entry_port_get() 1022 err = mlxsw_sp_pgt_entry_port_set(mlxsw_sp, mdb_entry->mid, in mlxsw_sp_mdb_entry_port_get() 1023 mdb_entry->key.fid, local_port, true); in mlxsw_sp_mdb_entry_port_get() 1035 list_add(&mdb_entry_port->list, &mdb_entry->ports_list); in mlxsw_sp_mdb_entry_port_get() 1036 mdb_entry->ports_count++; in mlxsw_sp_mdb_entry_port_get() 1041 mlxsw_sp_pgt_entry_port_set(mlxsw_sp, mdb_entry->mid, in mlxsw_sp_mdb_entry_port_get() [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/ |
D | prestera_main.c | 1225 struct prestera_mdb_entry *mdb_entry; in prestera_mdb_entry_create() local 1227 mdb_entry = kzalloc(sizeof(*mdb_entry), GFP_KERNEL); in prestera_mdb_entry_create() 1228 if (!mdb_entry) in prestera_mdb_entry_create() 1235 mdb_entry->sw = sw; in prestera_mdb_entry_create() 1236 mdb_entry->vid = vid; in prestera_mdb_entry_create() 1237 mdb_entry->flood_domain = flood_domain; in prestera_mdb_entry_create() 1238 ether_addr_copy(mdb_entry->addr, addr); in prestera_mdb_entry_create() 1240 if (prestera_hw_mdb_create(mdb_entry)) in prestera_mdb_entry_create() 1243 return mdb_entry; in prestera_mdb_entry_create() 1248 kfree(mdb_entry); in prestera_mdb_entry_create() [all …]
|
D | prestera_switchdev.c | 1499 struct prestera_mdb_entry *mdb_entry; in prestera_br_mdb_entry_create() local 1505 mdb_entry = prestera_mdb_entry_create(sw, addr, vid); in prestera_br_mdb_entry_create() 1506 if (!mdb_entry) in prestera_br_mdb_entry_create() 1509 br_mdb_entry->mdb = mdb_entry; in prestera_br_mdb_entry_create()
|
D | prestera.h | 401 void prestera_mdb_entry_destroy(struct prestera_mdb_entry *mdb_entry);
|