Home
last modified time | relevance | path

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

/linux-5.19.10/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.c65 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
82 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
110 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
112 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
118 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
129 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
139 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
Dindir_table.c428 hash_add(esw->fdb_table.offloads.indir->table, &e->hlist, in mlx5_esw_indir_table_entry_create()
451 hash_for_each_possible(esw->fdb_table.offloads.indir->table, e, hlist, key) in mlx5_esw_indir_table_entry_lookup()
466 mutex_lock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
484 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
488 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_get()
498 mutex_lock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_put()
518 mutex_unlock(&esw->fdb_table.offloads.indir->lock); in mlx5_esw_indir_table_put()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c249 dest[i].ft = esw->fdb_table.offloads.slow_fdb; in esw_setup_slow_path_dest()
861 struct offloads_fdb *offloads = &esw->fdb_table.offloads; in mlx5_eswitch_add_vlan_action()
930 struct offloads_fdb *offloads = &esw->fdb_table.offloads; in mlx5_eswitch_del_vlan_action()
1027 flow_rule = mlx5_add_flow_rules(on_esw->fdb_table.offloads.slow_fdb, in mlx5_eswitch_add_send_to_vport_rule()
1045 struct mlx5_flow_handle **flows = esw->fdb_table.offloads.send_to_vport_meta_rules; in mlx5_eswitch_del_send_to_vport_meta_rules()
1098 flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in mlx5_eswitch_add_send_to_vport_meta_rules()
1109 esw->fdb_table.offloads.send_to_vport_meta_rules = flows; in mlx5_eswitch_add_send_to_vport_meta_rules()
1265 flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in esw_add_fdb_peer_miss_rules()
1277 flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in esw_add_fdb_peer_miss_rules()
1291 flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, in esw_add_fdb_peer_miss_rules()
[all …]
Deswitch.h85 ((esw)->fdb_table.offloads.esw_chains_priv)
292 struct mlx5_eswitch_fdb fdb_table; member
Deswitch.c232 mlx5_add_flow_rules(esw->fdb_table.legacy.fdb, spec, in __esw_fdb_set_vport_rule()
305 if (esw->fdb_table.legacy.fdb && esw->mode == MLX5_ESWITCH_LEGACY) in esw_add_uc_addr()
397 if (!esw->fdb_table.legacy.fdb) in esw_add_mc_addr()
437 if (!esw->fdb_table.legacy.fdb) in esw_del_mc_addr()