Home
last modified time | relevance | path

Searched refs:num_of_actions (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_ptrn.c26 size_t num_of_actions, in dr_ptrn_compare_modify_hdr()
31 if (cur_num_of_actions != num_of_actions) in dr_ptrn_compare_modify_hdr()
34 for (i = 0; i < num_of_actions; i++) { in dr_ptrn_compare_modify_hdr()
53 size_t num_of_actions, in dr_ptrn_find_cached_pattern()
60 if (dr_ptrn_compare_modify_hdr(cached_pattern->num_of_actions, in dr_ptrn_find_cached_pattern()
62 num_of_actions, in dr_ptrn_find_cached_pattern()
78 u16 num_of_actions, u8 *data) in dr_ptrn_alloc_pattern()
85 chunk_size = ilog2(roundup_pow_of_two(num_of_actions)); in dr_ptrn_alloc_pattern()
101 pattern->data = kzalloc(num_of_actions * DR_MODIFY_ACTION_SIZE * in dr_ptrn_alloc_pattern()
106 memcpy(pattern->data, data, num_of_actions * DR_MODIFY_ACTION_SIZ in dr_ptrn_alloc_pattern()
24 dr_ptrn_compare_modify_hdr(size_t cur_num_of_actions, __be64 cur_hw_actions[], size_t num_of_actions, __be64 hw_actions[]) dr_ptrn_compare_modify_hdr() argument
52 dr_ptrn_find_cached_pattern(struct mlx5dr_ptrn_mgr *mgr, size_t num_of_actions, __be64 hw_actions[]) dr_ptrn_find_cached_pattern() argument
77 dr_ptrn_alloc_pattern(struct mlx5dr_ptrn_mgr *mgr, u16 num_of_actions, u8 *data) dr_ptrn_alloc_pattern() argument
133 mlx5dr_ptrn_cache_get_pattern(struct mlx5dr_ptrn_mgr *mgr, u16 num_of_actions, u8 *data) mlx5dr_ptrn_cache_get_pattern() argument
[all...]
H A Ddr_arg.c171 static enum dr_arg_chunk_size dr_arg_get_chunk_size(u16 num_of_actions) in dr_arg_get_chunk_size() argument
173 if (num_of_actions <= 8) in dr_arg_get_chunk_size()
175 if (num_of_actions <= 16) in dr_arg_get_chunk_size()
177 if (num_of_actions <= 32) in dr_arg_get_chunk_size()
179 if (num_of_actions <= 64) in dr_arg_get_chunk_size()
191 u16 num_of_actions, in mlx5dr_arg_get_obj()
194 u32 size = dr_arg_get_chunk_size(num_of_actions); in mlx5dr_arg_get_obj()
210 num_of_actions, data); in mlx5dr_arg_get_obj()
190 mlx5dr_arg_get_obj(struct mlx5dr_arg_mgr *mgr, u16 num_of_actions, u8 *data) mlx5dr_arg_get_obj() argument
H A Ddr_types.h1023 u16 num_of_actions; member
1040 u16 num_of_actions; member
1328 u8 num_of_actions,
1491 u16 num_of_actions,
1494 u16 num_of_actions, u8 *actions_data);
1585 u16 num_of_actions, u8 *data);
1591 u16 num_of_actions,
H A Ddr_cmd.c366 u8 num_of_actions, in mlx5dr_cmd_alloc_modify_header()
377 num_of_actions * sizeof(u64); in mlx5dr_cmd_alloc_modify_header()
385 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_of_actions); in mlx5dr_cmd_alloc_modify_header()
387 memcpy(p_actions, actions, num_of_actions * sizeof(u64)); in mlx5dr_cmd_alloc_modify_header()
364 mlx5dr_cmd_alloc_modify_header(struct mlx5_core_dev *mdev, u32 table_type, u8 num_of_actions, u64 *actions, u32 *modify_header_id) mlx5dr_cmd_alloc_modify_header() argument
H A Ddr_action.c825 attr.decap_actions = action->rewrite->ptrn->num_of_actions; in mlx5dr_actions_build_ste_arr()
829 attr.decap_actions = action->rewrite->num_of_actions; in mlx5dr_actions_build_ste_arr()
837 attr.modify_actions = action->rewrite->num_of_actions; in mlx5dr_actions_build_ste_arr()
843 attr.modify_actions = action->rewrite->ptrn->num_of_actions; in mlx5dr_actions_build_ste_arr()
847 attr.modify_actions = action->rewrite->num_of_actions; in mlx5dr_actions_build_ste_arr()
1441 &action->rewrite->num_of_actions); in dr_action_create_reformat_action()
2017 action->rewrite->num_of_actions = num_hw_actions; in dr_action_create_modify_action()
H A Ddr_ste_v1.c500 u16 num_of_actions, in dr_ste_v1_set_accelerated_rewrite_actions()
513 number_of_modify_actions, num_of_actions); in dr_ste_v1_set_accelerated_rewrite_actions()
523 u16 num_of_actions, in dr_ste_v1_set_basic_rewrite_actions()
529 num_of_actions); in dr_ste_v1_set_basic_rewrite_actions()
538 u16 num_of_actions, in dr_ste_v1_set_rewrite_actions()
546 num_of_actions, in dr_ste_v1_set_rewrite_actions()
554 num_of_actions, in dr_ste_v1_set_rewrite_actions()
2242 action->rewrite->num_of_actions, in dr_ste_v1_alloc_modify_hdr_ptrn_arg()
2251 action->rewrite->num_of_actions, in dr_ste_v1_alloc_modify_hdr_ptrn_arg()
498 dr_ste_v1_set_accelerated_rewrite_actions(u8 *hw_ste_p, u8 *d_action, u16 num_of_actions, u32 rewrite_pattern, u32 rewrite_args, u8 *action_data) dr_ste_v1_set_accelerated_rewrite_actions() argument
521 dr_ste_v1_set_basic_rewrite_actions(u8 *hw_ste_p, u8 *s_action, u16 num_of_actions, u32 rewrite_index) dr_ste_v1_set_basic_rewrite_actions() argument
536 dr_ste_v1_set_rewrite_actions(u8 *hw_ste_p, u8 *action, u16 num_of_actions, u32 rewrite_pattern, u32 rewrite_args, u8 *action_data) dr_ste_v1_set_rewrite_actions() argument
H A Ddr_dbg.c157 ptrn_arg ? action->rewrite->num_of_actions : 0, in dr_dump_rule_action_mem()
162 for (i = 0; i < action->rewrite->num_of_actions; i++) { in dr_dump_rule_action_mem()
H A Ddr_send.c842 send_info.write.length = action->rewrite->num_of_actions * in mlx5dr_send_postsend_action()
854 u16 num_of_actions, in mlx5dr_send_postsend_pattern()
861 send_info.write.length = num_of_actions * DR_MODIFY_ACTION_SIZE; in mlx5dr_send_postsend_pattern()
873 u16 num_of_actions, u8 *actions_data) in mlx5dr_send_postsend_args()
880 data_len = num_of_actions * DR_MODIFY_ACTION_SIZE; in mlx5dr_send_postsend_args()
852 mlx5dr_send_postsend_pattern(struct mlx5dr_domain *dmn, struct mlx5dr_icm_chunk *chunk, u16 num_of_actions, u8 *data) mlx5dr_send_postsend_pattern() argument
872 mlx5dr_send_postsend_args(struct mlx5dr_domain *dmn, u64 arg_id, u16 num_of_actions, u8 *actions_data) mlx5dr_send_postsend_args() argument
H A Ddr_ste_v0.c388 static void dr_ste_v0_set_rewrite_actions(u8 *hw_ste_p, u16 num_of_actions, in dr_ste_v0_set_rewrite_actions() argument
392 num_of_actions); in dr_ste_v0_set_rewrite_actions()
H A Ddr_ste.c644 chunk_size = ilog2(roundup_pow_of_two(action->rewrite->num_of_actions)); in dr_ste_alloc_modify_hdr_chunk()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_cmd.c233 u8 num_of_actions, in mlx5dr_cmd_alloc_modify_header()
244 num_of_actions * sizeof(u64); in mlx5dr_cmd_alloc_modify_header()
252 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_of_actions); in mlx5dr_cmd_alloc_modify_header()
254 memcpy(p_actions, actions, num_of_actions * sizeof(u64)); in mlx5dr_cmd_alloc_modify_header()
231 mlx5dr_cmd_alloc_modify_header(struct mlx5_core_dev *mdev, u32 table_type, u8 num_of_actions, u64 *actions, u32 *modify_header_id) mlx5dr_cmd_alloc_modify_header() argument
H A Ddr_types.h243 void mlx5dr_ste_set_rewrite_actions(u8 *hw_ste_p, u16 num_of_actions,
740 u16 num_of_actions; member
942 u8 num_of_actions,
H A Ddr_action.c732 attr.decap_actions = action->rewrite.num_of_actions; in mlx5dr_actions_build_ste_arr()
738 attr.modify_actions = action->rewrite.num_of_actions; in mlx5dr_actions_build_ste_arr()
936 action->rewrite.num_of_actions = i; in dr_actions_l2_rewrite()
1805 action->rewrite.num_of_actions = num_hw_actions; in dr_action_create_modify_action()
H A Ddr_ste.c242 void mlx5dr_ste_set_rewrite_actions(u8 *hw_ste_p, u16 num_of_actions, in mlx5dr_ste_set_rewrite_actions() argument
246 num_of_actions); in mlx5dr_ste_set_rewrite_actions()
H A Ddr_send.c564 send_info.write.length = action->rewrite.num_of_actions * in mlx5dr_send_postsend_action()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_cmd.c813 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_cmd.c1005 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
/kernel/linux/linux-5.10/include/linux/mlx5/
H A Dmlx5_ifc.h5833 u8 num_of_actions[0x8]; member
/kernel/linux/linux-6.6/include/linux/mlx5/
H A Dmlx5_ifc.h6784 u8 num_of_actions[0x8]; member

Completed in 92 milliseconds