Lines Matching refs:handle

81 			  struct mlx5e_post_act_handle *handle)  in mlx5e_tc_post_act_offload()  argument
94 mlx5e_tc_match_to_reg_match(spec, FTEID_TO_REG, handle->id, MLX5_POST_ACTION_MASK); in mlx5e_tc_post_act_offload()
96 handle->rule = mlx5e_tc_rule_offload(post_act->priv, spec, handle->attr); in mlx5e_tc_post_act_offload()
97 if (IS_ERR(handle->rule)) { in mlx5e_tc_post_act_offload()
98 err = PTR_ERR(handle->rule); in mlx5e_tc_post_act_offload()
114 struct mlx5e_post_act_handle *handle; in mlx5e_tc_post_act_add() local
120 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add()
121 if (!handle) in mlx5e_tc_post_act_add()
132 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add()
134 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add()
137 err = xa_alloc(&post_act->ids, &handle->id, post_attr, in mlx5e_tc_post_act_add()
142 handle->attr = post_attr; in mlx5e_tc_post_act_add()
144 return handle; in mlx5e_tc_post_act_add()
147 kfree(handle); in mlx5e_tc_post_act_add()
153 struct mlx5e_post_act_handle *handle) in mlx5e_tc_post_act_unoffload() argument
155 mlx5e_tc_rule_unoffload(post_act->priv, handle->rule, handle->attr); in mlx5e_tc_post_act_unoffload()
156 handle->rule = NULL; in mlx5e_tc_post_act_unoffload()
160 mlx5e_tc_post_act_del(struct mlx5e_post_act *post_act, struct mlx5e_post_act_handle *handle) in mlx5e_tc_post_act_del() argument
162 if (!IS_ERR_OR_NULL(handle->rule)) in mlx5e_tc_post_act_del()
163 mlx5e_tc_post_act_unoffload(post_act, handle); in mlx5e_tc_post_act_del()
164 xa_erase(&post_act->ids, handle->id); in mlx5e_tc_post_act_del()
165 kfree(handle); in mlx5e_tc_post_act_del()
177 struct mlx5e_post_act_handle *handle, in mlx5e_tc_post_act_set_handle() argument
180 return mlx5e_tc_match_to_reg_set(dev, acts, handle->ns_type, FTEID_TO_REG, handle->id); in mlx5e_tc_post_act_set_handle()