Home
last modified time | relevance | path

Searched refs:fdb_table (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c46 esw->fdb_table.legacy.vepa_fdb = fdb; in esw_create_legacy_vepa_table()
54 if (!esw->fdb_table.legacy.fdb) in esw_destroy_legacy_fdb_table()
57 if (esw->fdb_table.legacy.promisc_grp) in esw_destroy_legacy_fdb_table()
58 mlx5_destroy_flow_group(esw->fdb_table.legacy.promisc_grp); in esw_destroy_legacy_fdb_table()
59 if (esw->fdb_table.legacy.allmulti_grp) in esw_destroy_legacy_fdb_table()
60 mlx5_destroy_flow_group(esw->fdb_table.legacy.allmulti_grp); in esw_destroy_legacy_fdb_table()
61 if (esw->fdb_table.legacy.addr_grp) in esw_destroy_legacy_fdb_table()
62 mlx5_destroy_flow_group(esw->fdb_table.legacy.addr_grp); in esw_destroy_legacy_fdb_table()
63 mlx5_destroy_flow_table(esw->fdb_table.legacy.fdb); in esw_destroy_legacy_fdb_table()
65 esw->fdb_table.legacy.fdb = NULL; in esw_destroy_legacy_fdb_table()
[all …]
Dvporttbl.c73 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
90 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
119 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
121 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
127 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
138 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
149 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
Dindir_table.c293 hash_add(esw->fdb_table.offloads.indir->table, &e->hlist, in mlx5_esw_indir_table_entry_create()
316 hash_for_each_possible(esw->fdb_table.offloads.indir->table, e, hlist, key) in mlx5_esw_indir_table_entry_lookup()
330 mutex_lock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
348 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
352 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
361 mutex_lock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_put()
381 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_put()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c1248 flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in esw_add_fdb_peer_miss_rules()
1265 esw->fdb_table.offloads.peer_miss_rules[pfindex] = flows; in esw_add_fdb_peer_miss_rules()
1307 flows = esw->fdb_table.offloads.peer_miss_rules[peer_index]; in esw_del_fdb_peer_miss_rules()
1336 esw->fdb_table.offloads.peer_miss_rules[peer_index] = NULL; in esw_del_fdb_peer_miss_rules()
1376 esw->fdb_table.offloads.miss_rule_uni = flow_rule; in esw_add_fdb_miss_rule()
1388 mlx5_del_flow_rules(esw->fdb_table.offloads.miss_rule_uni); in esw_add_fdb_miss_rule()
1392 esw->fdb_table.offloads.miss_rule_multi = flow_rule; in esw_add_fdb_miss_rule()
1570 esw->fdb_table.offloads.esw_chains_priv = chains; in esw_chains_create()
1604 esw->fdb_table.offloads.esw_chains_priv = NULL; in esw_chains_create()
1669 esw->fdb_table.offloads.send_to_vport_grp = g; in esw_create_send_to_vport_group()
[all …]
Deswitch.h87 ((esw)->fdb_table.offloads.esw_chains_priv)
339 struct mlx5_eswitch_fdb fdb_table; member
667 return esw->fdb_table.flags & MLX5_ESW_FDB_CREATED; in mlx5_esw_is_fdb_created()
869 return esw->fdb_table.offloads.slow_fdb; in mlx5_eswitch_get_slow_fdb()
Deswitch.c256 mlx5_add_flow_rules(esw->fdb_table.legacy.fdb, spec, in __esw_fdb_set_vport_rule()
329 if (esw->fdb_table.legacy.fdb && esw->mode == MLX5_ESWITCH_LEGACY) { in esw_add_uc_addr()
422 if (!esw->fdb_table.legacy.fdb) in esw_add_mc_addr()
462 if (!esw->fdb_table.legacy.fdb) in esw_del_mc_addr()
1494 esw->fdb_table.flags |= MLX5_ESW_FDB_CREATED; in mlx5_eswitch_enable_locked()
1623 if (esw->fdb_table.flags & MLX5_ESW_FDB_CREATED) { in mlx5_eswitch_disable_locked()
1624 esw->fdb_table.flags &= ~MLX5_ESW_FDB_CREATED; in mlx5_eswitch_disable_locked()
Den_rep.c581 g = esw->fdb_table.offloads.send_to_vport_meta_grp; in mlx5e_rep_add_meta_tunnel_rule()