| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_ptrn.c | 26 size_t num_of_actions, in dr_ptrn_compare_modify_hdr() argument 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() argument 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() argument 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_SIZE); in dr_ptrn_alloc_pattern() [all …]
|
| H A D | dr_arg.c | 171 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() argument 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()
|
| H A D | dr_types.h | 1019 u16 num_of_actions; member 1036 u16 num_of_actions; member 1325 u8 num_of_actions, 1492 u16 num_of_actions, 1495 u16 num_of_actions, u8 *actions_data); 1586 u16 num_of_actions, u8 *data); 1592 u16 num_of_actions,
|
| H A D | dr_action.c | 832 attr.decap_actions = action->rewrite->ptrn->num_of_actions; in mlx5dr_actions_build_ste_arr() 836 attr.decap_actions = action->rewrite->num_of_actions; in mlx5dr_actions_build_ste_arr() 844 attr.modify_actions = action->rewrite->num_of_actions; in mlx5dr_actions_build_ste_arr() 850 attr.modify_actions = action->rewrite->ptrn->num_of_actions; in mlx5dr_actions_build_ste_arr() 854 attr.modify_actions = action->rewrite->num_of_actions; in mlx5dr_actions_build_ste_arr() 1469 &action->rewrite->num_of_actions); in dr_action_create_reformat_action() 2045 action->rewrite->num_of_actions = num_hw_actions; in dr_action_create_modify_action()
|
| H A D | dr_send.c | 842 send_info.write.length = action->rewrite->num_of_actions * in mlx5dr_send_postsend_action() 854 u16 num_of_actions, in mlx5dr_send_postsend_pattern() argument 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() argument 880 data_len = num_of_actions * DR_MODIFY_ACTION_SIZE; in mlx5dr_send_postsend_args()
|
| H A D | dr_ste_v1.c | 365 u16 num_of_actions, in dr_ste_v1_set_accelerated_rewrite_actions() argument 378 number_of_modify_actions, num_of_actions); in dr_ste_v1_set_accelerated_rewrite_actions() 388 u16 num_of_actions, in dr_ste_v1_set_basic_rewrite_actions() argument 394 num_of_actions); in dr_ste_v1_set_basic_rewrite_actions() 403 u16 num_of_actions, in dr_ste_v1_set_rewrite_actions() argument 411 num_of_actions, in dr_ste_v1_set_rewrite_actions() 419 num_of_actions, in dr_ste_v1_set_rewrite_actions() 2106 action->rewrite->num_of_actions, in dr_ste_v1_alloc_modify_hdr_ptrn_arg() 2115 action->rewrite->num_of_actions, in dr_ste_v1_alloc_modify_hdr_ptrn_arg()
|
| H A D | dr_dbg.c | 291 ptrn_arg ? action->rewrite->num_of_actions : 0, in dr_dump_rule_action_mem() 302 for (i = 0; i < action->rewrite->num_of_actions; i++) { in dr_dump_rule_action_mem()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | pat_arg.c | 28 mlx5hws_arg_get_arg_log_size(u16 num_of_actions) in mlx5hws_arg_get_arg_log_size() argument 30 return mlx5hws_arg_data_size_to_arg_log_size(num_of_actions * in mlx5hws_arg_get_arg_log_size() 34 u32 mlx5hws_arg_get_arg_size(u16 num_of_actions) in mlx5hws_arg_get_arg_size() argument 36 return BIT(mlx5hws_arg_get_arg_log_size(num_of_actions)); in mlx5hws_arg_get_arg_size() 39 bool mlx5hws_pat_require_reparse(__be64 *actions, u16 num_of_actions) in mlx5hws_pat_require_reparse() argument 44 for (i = 0; i < num_of_actions; i++) { in mlx5hws_pat_require_reparse() 101 int num_of_actions, in mlx5hws_pat_compare_pattern() argument 106 if (cur_num_of_actions != num_of_actions) in mlx5hws_pat_compare_pattern() 109 for (i = 0; i < num_of_actions; i++) { in mlx5hws_pat_compare_pattern() 130 u16 num_of_actions, in mlx5hws_pat_find_cached_pattern() argument [all …]
|
| H A D | action.c | 462 if (action->modify_header.num_of_actions == 1) { in hws_action_fill_stc_attr() 1002 int *num_of_actions) in hws_action_prepare_decap_l3_actions() argument 1043 *num_of_actions = actions; in hws_action_prepare_decap_l3_actions() 1055 int num_of_actions; in hws_action_handle_tunnel_l3_to_l2() local 1068 hws_action_prepare_decap_l3_actions(hdrs->sz, mh_data, &num_of_actions); in hws_action_handle_tunnel_l3_to_l2() 1070 mlx5hws_action_prepare_decap_l3_data(hdrs->data, mh_data, num_of_actions); in hws_action_handle_tunnel_l3_to_l2() 1075 num_of_actions, in hws_action_handle_tunnel_l3_to_l2() 1084 hws_action_prepare_decap_l3_actions(hdrs[i].sz, mh_data, &num_of_actions); in hws_action_handle_tunnel_l3_to_l2() 1085 mh_data_size = num_of_actions * MLX5HWS_MODIFY_ACTION_SIZE; in hws_action_handle_tunnel_l3_to_l2() 1093 action[i].modify_header.max_num_of_actions = num_of_actions; in hws_action_handle_tunnel_l3_to_l2() [all …]
|
| H A D | cmd.c | 665 int num_of_actions; in mlx5hws_cmd_header_modify_pattern_create() local 691 num_of_actions = pattern_length / MLX5HWS_MODIFY_ACTION_SIZE; in mlx5hws_cmd_header_modify_pattern_create() 692 for (i = 0; i < num_of_actions; i++) { in mlx5hws_cmd_header_modify_pattern_create()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_fs.c | 1695 u8 num_of_actions = 1; in setup_modify_header() local 1703 num_of_actions++; in setup_modify_header() 1711 num_of_actions++; in setup_modify_header() 1734 modify_hdr = mlx5_modify_header_alloc(mdev, ns_type, num_of_actions, action); in setup_modify_header()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_cmd.c | 1035 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
|