Searched refs:bwc_rule (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | bwc.c | 76 struct mlx5hws_bwc_rule *bwc_rule; in hws_bwc_matcher_move_all_simple() local 93 list_for_each_entry(bwc_rule, rules_list, list_node) { in hws_bwc_matcher_move_all_simple() 95 bwc_rule->rule, in hws_bwc_matcher_move_all_simple() 482 struct mlx5hws_bwc_rule *bwc_rule; in mlx5hws_bwc_rule_alloc() local 484 bwc_rule = kzalloc_obj(*bwc_rule); in mlx5hws_bwc_rule_alloc() 485 if (unlikely(!bwc_rule)) in mlx5hws_bwc_rule_alloc() 488 bwc_rule->rule = kzalloc_obj(*bwc_rule->rule); in mlx5hws_bwc_rule_alloc() 489 if (unlikely(!bwc_rule->rule)) in mlx5hws_bwc_rule_alloc() 492 bwc_rule->bwc_matcher = bwc_matcher; in mlx5hws_bwc_rule_alloc() 493 return bwc_rule; in mlx5hws_bwc_rule_alloc() [all …]
|
| H A D | bwc_complex.c | 664 hws_complex_get_subrule_data(struct mlx5hws_bwc_rule *bwc_rule, in hws_complex_get_subrule_data() argument 708 bwc_rule->subrule_data = old_data; in hws_complex_get_subrule_data() 713 bwc_rule->subrule_data = sr_data; in hws_complex_get_subrule_data() 725 hws_complex_put_subrule_data(struct mlx5hws_bwc_rule *bwc_rule, in hws_complex_put_subrule_data() argument 735 sr_data = bwc_rule->subrule_data; in hws_complex_put_subrule_data() 746 bwc_rule->subrule_data = NULL; in hws_complex_put_subrule_data() 799 static int hws_complex_subrule_destroy(struct mlx5hws_bwc_rule *bwc_rule, in hws_complex_subrule_destroy() argument 815 hws_complex_put_subrule_data(bwc_rule, subm, &is_last_rule); in hws_complex_subrule_destroy() 816 bwc_rule->rule->skip_delete = !is_last_rule; in hws_complex_subrule_destroy() 817 ret = mlx5hws_bwc_rule_destroy_simple(bwc_rule); in hws_complex_subrule_destroy() [all …]
|
| H A D | bwc.h | 82 void mlx5hws_bwc_rule_free(struct mlx5hws_bwc_rule *bwc_rule); 84 int mlx5hws_bwc_rule_create_simple(struct mlx5hws_bwc_rule *bwc_rule, 90 int mlx5hws_bwc_rule_destroy_simple(struct mlx5hws_bwc_rule *bwc_rule);
|
| H A D | bwc_complex.h | 80 int mlx5hws_bwc_rule_create_complex(struct mlx5hws_bwc_rule *bwc_rule, 86 int mlx5hws_bwc_rule_destroy_complex(struct mlx5hws_bwc_rule *bwc_rule);
|
| H A D | fs_hws.h | 65 struct mlx5hws_bwc_rule *bwc_rule; member
|
| H A D | mlx5hws.h | 928 int mlx5hws_bwc_rule_destroy(struct mlx5hws_bwc_rule *bwc_rule); 938 int mlx5hws_bwc_rule_action_update(struct mlx5hws_bwc_rule *bwc_rule,
|
| H A D | fs_hws.c | 1096 fte->fs_hws_rule.bwc_rule = rule; in mlx5_cmd_hws_create_fte() 1117 err = mlx5hws_bwc_rule_destroy(rule->bwc_rule); in mlx5_cmd_hws_delete_fte() 1118 rule->bwc_rule = NULL; in mlx5_cmd_hws_delete_fte() 1154 ret = mlx5hws_bwc_rule_action_update(fte->fs_hws_rule.bwc_rule, ractions); in mlx5_cmd_hws_update_fte()
|