Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_table.c27 chunk = nic_tbl->nic_dmn->type == DR_DOMAIN_NIC_TYPE_RX ? in dr_table_set_miss_action_nic()
32 nic_tbl->default_icm_addr = nic_tbl->nic_dmn->default_icm_addr; in dr_table_set_miss_action_nic()
38 ret = mlx5dr_ste_htbl_init_and_postsend(dmn, nic_tbl->nic_dmn, in dr_table_set_miss_action_nic()
123 struct mlx5dr_domain_rx_tx *nic_dmn = nic_tbl->nic_dmn; in dr_table_init_nic() local
129 nic_tbl->default_icm_addr = nic_dmn->default_icm_addr; in dr_table_init_nic()
141 info.miss_icm_addr = nic_dmn->default_icm_addr; in dr_table_init_nic()
142 ret = mlx5dr_ste_htbl_init_and_postsend(dmn, nic_dmn, in dr_table_init_nic()
189 tbl->rx.nic_dmn = &tbl->dmn->info.rx; in dr_table_init()
194 tbl->tx.nic_dmn = &tbl->dmn->info.tx; in dr_table_init()
199 tbl->rx.nic_dmn = &tbl->dmn->info.rx; in dr_table_init()
[all …]
Ddr_rule.c380 struct mlx5dr_domain_rx_tx *nic_dmn; in dr_rule_rehash_htbl() local
388 nic_dmn = nic_matcher->nic_tbl->nic_dmn; in dr_rule_rehash_htbl()
408 nic_dmn->type, in dr_rule_rehash_htbl()
661 struct mlx5dr_domain_rx_tx *nic_dmn) in dr_rule_need_enlarge_hash() argument
816 struct mlx5dr_domain_rx_tx *nic_dmn; in dr_rule_handle_ste_branch() local
825 nic_dmn = nic_matcher->nic_tbl->nic_dmn; in dr_rule_handle_ste_branch()
852 if (!skip_rehash && dr_rule_need_enlarge_hash(cur_htbl, dmn, nic_dmn)) { in dr_rule_handle_ste_branch()
1004 mlx5dr_domain_nic_lock(nic_rule->nic_matcher->nic_tbl->nic_dmn); in dr_rule_destroy_rule_nic()
1012 mlx5dr_domain_nic_unlock(nic_rule->nic_matcher->nic_tbl->nic_dmn); in dr_rule_destroy_rule_nic()
1096 struct mlx5dr_domain_rx_tx *nic_dmn; in dr_rule_create_rule_nic() local
[all …]
Ddr_matcher.c407 struct mlx5dr_domain_rx_tx *nic_dmn = nic_matcher->nic_tbl->nic_dmn; in dr_matcher_set_ste_builders() local
418 rx = nic_dmn->type == DR_DOMAIN_NIC_TYPE_RX; in dr_matcher_set_ste_builders()
687 struct mlx5dr_domain_rx_tx *nic_dmn = nic_tbl->nic_dmn; in dr_nic_matcher_connect() local
700 ret = mlx5dr_ste_htbl_init_and_postsend(dmn, nic_dmn, in dr_nic_matcher_connect()
709 ret = mlx5dr_ste_htbl_init_and_postsend(dmn, nic_dmn, in dr_nic_matcher_connect()
723 ret = mlx5dr_ste_htbl_init_and_postsend(dmn, nic_dmn, prev_htbl, in dr_nic_matcher_connect()
1035 struct mlx5dr_domain_rx_tx *nic_dmn = nic_tbl->nic_dmn; in dr_matcher_disconnect_nic() local
1056 return mlx5dr_ste_htbl_init_and_postsend(dmn, nic_dmn, prev_anchor, in dr_matcher_disconnect_nic()
Ddr_action.c646 struct mlx5dr_domain_rx_tx *nic_dmn = nic_matcher->nic_tbl->nic_dmn; in mlx5dr_actions_build_ste_arr() local
647 bool rx_rule = nic_dmn->type == DR_DOMAIN_NIC_TYPE_RX; in mlx5dr_actions_build_ste_arr()
660 attr.final_icm_addr = nic_dmn->default_icm_addr; in mlx5dr_actions_build_ste_arr()
661 action_domain = dr_action_get_action_domain(dmn->type, nic_dmn->type); in mlx5dr_actions_build_ste_arr()
675 attr.final_icm_addr = nic_dmn->drop_icm_addr; in mlx5dr_actions_build_ste_arr()
676 attr.hit_gvmi = nic_dmn->drop_icm_addr >> 48; in mlx5dr_actions_build_ste_arr()
767 attr.final_icm_addr = nic_dmn->drop_icm_addr; in mlx5dr_actions_build_ste_arr()
768 attr.hit_gvmi = nic_dmn->drop_icm_addr >> 48; in mlx5dr_actions_build_ste_arr()
852 nic_dmn->type, in mlx5dr_actions_build_ste_arr()
Ddr_ste.c418 struct mlx5dr_domain_rx_tx *nic_dmn, in mlx5dr_ste_htbl_init_and_postsend() argument
427 nic_dmn->type, in mlx5dr_ste_htbl_init_and_postsend()
441 struct mlx5dr_domain_rx_tx *nic_dmn = nic_matcher->nic_tbl->nic_dmn; in mlx5dr_ste_create_next_htbl() local
467 if (mlx5dr_ste_htbl_init_and_postsend(dmn, nic_dmn, next_htbl, in mlx5dr_ste_create_next_htbl()
678 struct mlx5dr_domain_rx_tx *nic_dmn = nic_matcher->nic_tbl->nic_dmn; in mlx5dr_ste_build_ste_arr() local
679 bool is_rx = nic_dmn->type == DR_DOMAIN_NIC_TYPE_RX; in mlx5dr_ste_build_ste_arr()
Ddr_types.h925 struct mlx5dr_domain_rx_tx *nic_dmn; member
1122 static inline void mlx5dr_domain_nic_lock(struct mlx5dr_domain_rx_tx *nic_dmn) in mlx5dr_domain_nic_lock() argument
1124 mutex_lock(&nic_dmn->mutex); in mlx5dr_domain_nic_lock()
1127 static inline void mlx5dr_domain_nic_unlock(struct mlx5dr_domain_rx_tx *nic_dmn) in mlx5dr_domain_nic_unlock() argument
1129 mutex_unlock(&nic_dmn->mutex); in mlx5dr_domain_nic_unlock()
1312 struct mlx5dr_domain_rx_tx *nic_dmn,
Ddr_dbg.c458 if (rx->nic_dmn) { in dr_dump_table()
465 if (tx->nic_dmn) { in dr_dump_table()