Home
last modified time | relevance | path

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

/dpdk/drivers/net/mlx5/
H A Dmlx5_flow_meter.c49 priv->sh->mtrmng->def_policy[domain]; in mlx5_flow_meter_action_create()
776 if (policy_id == priv->sh->mtrmng->def_policy_id) in mlx5_flow_meter_policy_add()
805 priv->sh->mtrmng->def_policy_id = policy_id; in mlx5_flow_meter_policy_add()
955 if (policy_id == priv->sh->mtrmng->def_policy_id) { in mlx5_flow_meter_policy_delete()
956 if (priv->sh->mtrmng->def_policy_ref_cnt > 0) in mlx5_flow_meter_policy_delete()
960 priv->sh->mtrmng->def_policy_id = MLX5_INVALID_POLICY_ID; in mlx5_flow_meter_policy_delete()
1216 (&priv->sh->mtrmng->def_policy_ref_cnt, in mlx5_flow_meter_create()
1272 if ((mtr_id_bits + priv->sh->mtrmng->max_mtr_flow_bits) > in mlx5_flow_meter_create()
1277 if (mtr_id_bits > priv->sh->mtrmng->max_mtr_bits) in mlx5_flow_meter_create()
1278 priv->sh->mtrmng->max_mtr_bits = mtr_id_bits; in mlx5_flow_meter_create()
[all …]
H A Dmlx5.c643 if (!sh->mtrmng) { in mlx5_aso_flow_mtrs_mng_init()
644 sh->mtrmng = mlx5_malloc(MLX5_MEM_ZERO, in mlx5_aso_flow_mtrs_mng_init()
645 sizeof(*sh->mtrmng), in mlx5_aso_flow_mtrs_mng_init()
647 if (!sh->mtrmng) { in mlx5_aso_flow_mtrs_mng_init()
674 struct mlx5_flow_mtr_mng *mtrmng = sh->mtrmng; in mlx5_aso_flow_mtrs_mng_close() local
683 idx = mtrmng->pools_mng.n_valid; in mlx5_aso_flow_mtrs_mng_close()
697 mtrmng->pools_mng.n_valid--; in mlx5_aso_flow_mtrs_mng_close()
700 mlx5_free(sh->mtrmng->pools_mng.pools); in mlx5_aso_flow_mtrs_mng_close()
702 mlx5_free(sh->mtrmng); in mlx5_aso_flow_mtrs_mng_close()
703 sh->mtrmng = NULL; in mlx5_aso_flow_mtrs_mng_close()
[all …]
H A Dmlx5_flow_dv.c5167 struct mlx5_flow_mtr_mng *mtrmng = priv->sh->mtrmng; in mlx5_flow_validate_action_meter() local
15762 priv->sh->mtrmng; in __flow_dv_create_domain_policy_acts()
16316 struct mlx5_flow_mtr_mng *mtrmng = priv->sh->mtrmng; in flow_dv_destroy_mtr_drop_tbls() local
16321 if (mtrmng->def_rule[i]) { in flow_dv_destroy_mtr_drop_tbls()
16323 (mtrmng->def_rule[i])); in flow_dv_destroy_mtr_drop_tbls()
16346 mtrmng->drop_tbl[i]); in flow_dv_destroy_mtr_drop_tbls()
16797 struct mlx5_flow_mtr_mng *mtrmng = priv->sh->mtrmng; in __flow_dv_create_domain_def_policy() local
16943 struct mlx5_flow_mtr_mng *mtrmng = priv->sh->mtrmng; in flow_dv_create_mtr_tbls() local
17036 if (!mtrmng->drop_matcher[domain][mtrmng->max_mtr_bits - 1]) { in flow_dv_create_mtr_tbls()
17051 mtrmng->drop_matcher[domain][mtrmng->max_mtr_bits - 1] = in flow_dv_create_mtr_tbls()
[all …]
H A Dmlx5_flow_aso.c279 if (mlx5_aso_sq_create(cdev, &sh->mtrmng->pools_mng.sq, in mlx5_aso_queue_init()
282 mlx5_aso_mtr_init_sq(&sh->mtrmng->pools_mng.sq); in mlx5_aso_queue_init()
323 sq = &sh->mtrmng->pools_mng.sq; in mlx5_aso_queue_uninit()
813 struct mlx5_aso_sq *sq = &sh->mtrmng->pools_mng.sq; in mlx5_aso_meter_update_by_wqe()
845 struct mlx5_aso_sq *sq = &sh->mtrmng->pools_mng.sq; in mlx5_aso_mtr_wait()
H A Dmlx5_flow.h1623 &priv->sh->mtrmng->pools_mng; in mlx5_aso_meter_by_idx()
H A Dmlx5.h1260 struct mlx5_flow_mtr_mng *mtrmng; member
H A Dmlx5_flow.c5494 &priv->sh->mtrmng->def_policy[mtr_domain]->sub_policy; in flow_meter_split_prep()
5523 if ((flow_id_bits + priv->sh->mtrmng->max_mtr_bits) > in flow_meter_split_prep()
5530 if (flow_id_bits > priv->sh->mtrmng->max_mtr_flow_bits) in flow_meter_split_prep()
5531 priv->sh->mtrmng->max_mtr_flow_bits = flow_id_bits; in flow_meter_split_prep()