Home
last modified time | relevance | path

Searched refs:bwc_matcher (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dbwc.c49 static void hws_bwc_matcher_init_attr(struct mlx5hws_bwc_matcher *bwc_matcher, in hws_bwc_matcher_init_attr() argument
69 hws_bwc_matcher_move_all_simple(struct mlx5hws_bwc_matcher *bwc_matcher) in hws_bwc_matcher_move_all_simple() argument
71 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in hws_bwc_matcher_move_all_simple()
72 struct mlx5hws_matcher *matcher = bwc_matcher->matcher; in hws_bwc_matcher_move_all_simple()
83 mlx5hws_bwc_rule_fill_attr(bwc_matcher, 0, 0, &rule_attr); in hws_bwc_matcher_move_all_simple()
86 if (list_empty(&bwc_matcher->rules[i])) in hws_bwc_matcher_move_all_simple()
91 rules_list = &bwc_matcher->rules[i]; in hws_bwc_matcher_move_all_simple()
166 static int hws_bwc_matcher_move_all(struct mlx5hws_bwc_matcher *bwc_matcher) in hws_bwc_matcher_move_all() argument
168 switch (bwc_matcher->matcher_type) { in hws_bwc_matcher_move_all()
170 return hws_bwc_matcher_move_all_simple(bwc_matcher); in hws_bwc_matcher_move_all()
[all …]
H A Dbwc_complex.c372 ft_attr.table_miss_id = first_subm->bwc_matcher->matcher->end_ft_id; in hws_isolated_table_create()
405 subm->bwc_matcher = cmatcher; in hws_submatcher_init_first()
411 ret = mlx5hws_bwc_matcher_create_simple(subm->bwc_matcher, subm->tbl, in hws_submatcher_init_first()
417 subm->bwc_matcher->matcher_type = MLX5HWS_BWC_MATCHER_COMPLEX_FIRST; in hws_submatcher_init_first()
428 mlx5hws_bwc_matcher_destroy_simple(subm->bwc_matcher); in hws_submatcher_init_first()
462 subm->bwc_matcher = kzalloc(sizeof(*subm->bwc_matcher), GFP_KERNEL); in hws_submatcher_init()
463 if (!subm->bwc_matcher) { in hws_submatcher_init()
482 ret = mlx5hws_bwc_matcher_create_simple(subm->bwc_matcher, subm->tbl, in hws_submatcher_init()
488 subm->bwc_matcher->matcher_type = in hws_submatcher_init()
500 mlx5hws_bwc_matcher_destroy_simple(subm->bwc_matcher); in hws_submatcher_init()
[all …]
H A Dbwc_complex.h44 struct mlx5hws_bwc_matcher *bwc_matcher; member
67 int mlx5hws_bwc_matcher_create_complex(struct mlx5hws_bwc_matcher *bwc_matcher,
73 void mlx5hws_bwc_matcher_destroy_complex(struct mlx5hws_bwc_matcher *bwc_matcher);
75 int mlx5hws_bwc_matcher_complex_move(struct mlx5hws_bwc_matcher *bwc_matcher);
78 mlx5hws_bwc_matcher_complex_move_first(struct mlx5hws_bwc_matcher *bwc_matcher);
H A Dbwc.h59 struct mlx5hws_bwc_matcher *bwc_matcher; member
71 mlx5hws_bwc_matcher_create_simple(struct mlx5hws_bwc_matcher *bwc_matcher,
78 int mlx5hws_bwc_matcher_destroy_simple(struct mlx5hws_bwc_matcher *bwc_matcher);
80 struct mlx5hws_bwc_rule *mlx5hws_bwc_rule_alloc(struct mlx5hws_bwc_matcher *bwc_matcher);
92 void mlx5hws_bwc_rule_fill_attr(struct mlx5hws_bwc_matcher *bwc_matcher,
H A Dmlx5hws.h887 int mlx5hws_bwc_matcher_destroy(struct mlx5hws_bwc_matcher *bwc_matcher);
916 mlx5hws_bwc_rule_create(struct mlx5hws_bwc_matcher *bwc_matcher,