Searched refs:fdb_table (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | legacy.c | 46 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() 59 if (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() 65 esw->fdb_table.legacy.fdb = NULL; in esw_destroy_legacy_fdb_table() 66 esw->fdb_table.legacy.addr_grp = NULL; in esw_destroy_legacy_fdb_table() 107 esw->fdb_table.legacy.fdb = fdb; in esw_create_legacy_fdb_table() 125 esw->fdb_table.legacy.addr_grp = g; in esw_create_legacy_fdb_table() 170 if (!esw->fdb_table.legacy.vepa_fdb) in esw_destroy_legacy_vepa_table() [all …]
|
H A D | vporttbl.c | 73 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()
|
H A D | indir_table.c | 293 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/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads.c | 1392 esw->fdb_table.offloads.miss_rule_uni = flow_rule; in esw_add_fdb_miss_rule() 1586 esw->fdb_table.offloads.esw_chains_priv = chains; in esw_chains_create() 1620 esw->fdb_table.offloads.esw_chains_priv = NULL; in esw_chains_create() 1685 esw->fdb_table.offloads.send_to_vport_grp = g; in esw_create_send_to_vport_group() 1780 esw->fdb_table.offloads.peer_miss_grp = g; in esw_create_peer_esw_miss_group() 1818 esw->fdb_table.offloads.miss_grp = g; in esw_create_miss_group() 1854 esw->fdb_table.offloads.ns = root_ns; in esw_create_offloads_fdb_tables() 1893 esw->fdb_table.offloads.slow_fdb = fdb; in esw_create_offloads_fdb_tables() 3330 mutex_init(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init() 3331 hash_init(esw->fdb_table.offloads.vports.table); in esw_offloads_steering_init() [all …]
|
H A D | eswitch.h | 87 ((esw)->fdb_table.offloads.esw_chains_priv) 340 struct mlx5_eswitch_fdb fdb_table; member 670 return esw->fdb_table.flags & MLX5_ESW_FDB_CREATED; in mlx5_esw_is_fdb_created() 872 return esw->fdb_table.offloads.slow_fdb; in mlx5_eswitch_get_slow_fdb()
|
H A D | eswitch.c | 256 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() 1624 if (esw->fdb_table.flags & MLX5_ESW_FDB_CREATED) { in mlx5_eswitch_disable_locked() 1625 esw->fdb_table.flags &= ~MLX5_ESW_FDB_CREATED; in mlx5_eswitch_disable_locked()
|
H A D | en_rep.c | 641 g = esw->fdb_table.offloads.send_to_vport_meta_grp; in mlx5e_rep_add_meta_tunnel_rule()
|