Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dbwc.c295 bwc_rule = kzalloc(sizeof(*bwc_rule), GFP_KERNEL); in mlx5hws_bwc_rule_alloc()
296 if (unlikely(!bwc_rule)) in mlx5hws_bwc_rule_alloc()
299 bwc_rule->rule = kzalloc(sizeof(*bwc_rule->rule), GFP_KERNEL); in mlx5hws_bwc_rule_alloc()
304 return bwc_rule; in mlx5hws_bwc_rule_alloc()
307 kfree(bwc_rule); in mlx5hws_bwc_rule_alloc()
314 if (likely(bwc_rule->rule)) in mlx5hws_bwc_rule_free()
315 kfree(bwc_rule->rule); in mlx5hws_bwc_rule_free()
316 kfree(bwc_rule); in mlx5hws_bwc_rule_free()
415 bwc_rule->rule); in hws_bwc_rule_create_async()
919 if (unlikely(!bwc_rule)) in mlx5hws_bwc_rule_create()
[all …]
H A Dbwc_complex.c67 int mlx5hws_bwc_rule_create_complex(struct mlx5hws_bwc_rule *bwc_rule, in mlx5hws_bwc_rule_create_complex() argument
73 mlx5hws_err(bwc_rule->bwc_matcher->matcher->tbl->ctx, in mlx5hws_bwc_rule_create_complex()
78 int mlx5hws_bwc_rule_destroy_complex(struct mlx5hws_bwc_rule *bwc_rule) in mlx5hws_bwc_rule_destroy_complex() argument
H A Dbwc.h53 void mlx5hws_bwc_rule_free(struct mlx5hws_bwc_rule *bwc_rule);
55 int mlx5hws_bwc_rule_create_simple(struct mlx5hws_bwc_rule *bwc_rule,
61 int mlx5hws_bwc_rule_destroy_simple(struct mlx5hws_bwc_rule *bwc_rule);
H A Dbwc_complex.h21 int mlx5hws_bwc_rule_create_complex(struct mlx5hws_bwc_rule *bwc_rule,
27 int mlx5hws_bwc_rule_destroy_complex(struct mlx5hws_bwc_rule *bwc_rule);
H A Dfs_hws.h60 struct mlx5hws_bwc_rule *bwc_rule; member
H A Dmlx5hws.h912 int mlx5hws_bwc_rule_destroy(struct mlx5hws_bwc_rule *bwc_rule);
922 int mlx5hws_bwc_rule_action_update(struct mlx5hws_bwc_rule *bwc_rule,
H A Dfs_hws.c1108 fte->fs_hws_rule.bwc_rule = rule; in mlx5_cmd_hws_create_fte()
1129 err = mlx5hws_bwc_rule_destroy(rule->bwc_rule); in mlx5_cmd_hws_delete_fte()
1130 rule->bwc_rule = NULL; in mlx5_cmd_hws_delete_fte()
1166 ret = mlx5hws_bwc_rule_action_update(fte->fs_hws_rule.bwc_rule, ractions); in mlx5_cmd_hws_update_fte()