Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A 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()
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 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()
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads.c1381 esw->fdb_table.offloads.miss_rule_uni = flow_rule; in esw_add_fdb_miss_rule()
1575 esw->fdb_table.offloads.esw_chains_priv = chains; in esw_chains_create()
1609 esw->fdb_table.offloads.esw_chains_priv = NULL; in esw_chains_create()
1674 esw->fdb_table.offloads.send_to_vport_grp = g; in esw_create_send_to_vport_group()
1769 esw->fdb_table.offloads.peer_miss_grp = g; in esw_create_peer_esw_miss_group()
1807 esw->fdb_table.offloads.miss_grp = g; in esw_create_miss_group()
1843 esw->fdb_table.offloads.ns = root_ns; in esw_create_offloads_fdb_tables()
1882 esw->fdb_table.offloads.slow_fdb = fdb; in esw_create_offloads_fdb_tables()
3318 mutex_init(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init()
3319 hash_init(esw->fdb_table.offloads.vports.table); in esw_offloads_steering_init()
[all …]
H A 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()
H A 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()
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 Den_rep.c581 g = esw->fdb_table.offloads.send_to_vport_meta_grp; in mlx5e_rep_add_meta_tunnel_rule()