action_id
u8 action_id =
if (action_id == MLX5_MODIFICATION_TYPE_COPY ||
action_id == MLX5_MODIFICATION_TYPE_ADD_FIELD) {
u8 action_id;
action_id = MLX5_GET(set_action_in, &actions[i], action_type);
switch (action_id) {
static const char *dr_action_id_to_str(enum mlx5dr_action_type action_id)
if (action_id > DR_ACTION_TYP_MAX)
action_id = DR_ACTION_TYP_MAX;
return action_type_to_str[action_id];
const u64 action_id = DR_DBG_PTR_TO_ID(action);
DR_DUMP_REC_TYPE_ACTION_DROP, action_id,
DR_DUMP_REC_TYPE_ACTION_FT, action_id,
DR_DUMP_REC_TYPE_ACTION_FT, action_id,
DR_DUMP_REC_TYPE_ACTION_CTR, action_id, rule_id,
DR_DUMP_REC_TYPE_ACTION_TAG, action_id, rule_id,
DR_DUMP_REC_TYPE_ACTION_MODIFY_HDR, action_id,
DR_DUMP_REC_TYPE_ACTION_VPORT, action_id, rule_id,
DR_DUMP_REC_TYPE_ACTION_DECAP_L2, action_id,
DR_DUMP_REC_TYPE_ACTION_DECAP_L3, action_id,
DR_DUMP_REC_TYPE_ACTION_ENCAP_L2, action_id,
DR_DUMP_REC_TYPE_ACTION_ENCAP_L3, action_id,
DR_DUMP_REC_TYPE_ACTION_POP_VLAN, action_id,
DR_DUMP_REC_TYPE_ACTION_PUSH_VLAN, action_id,
DR_DUMP_REC_TYPE_ACTION_INSERT_HDR, action_id,
DR_DUMP_REC_TYPE_ACTION_REMOVE_HDR, action_id,
DR_DUMP_REC_TYPE_ACTION_SAMPLER, action_id,
DR_DUMP_REC_TYPE_ACTION_MATCH_RANGE, action_id,
u8 action_id;
action_id = MLX5_GET(ste_double_action_set_v1, &hw_actions[i], action_id);
if (action_id == DR_PTRN_MODIFY_HDR_ACTION_ID_SET ||
action_id == DR_PTRN_MODIFY_HDR_ACTION_ID_ADD ||
action_id == DR_PTRN_MODIFY_HDR_ACTION_ID_INSERT_INLINE)
u8 action_id =
MLX5_GET(ste_double_action_set_v1, &hw_actions[i], action_id);
if (action_id == DR_PTRN_MODIFY_HDR_ACTION_ID_COPY) {
MLX5_SET(ste_single_action_flow_tag_v1, s_action, action_id,
MLX5_SET(ste_double_action_insert_with_ptr_v1, d_action, action_id,
action_id, DR_STE_V1_ACTION_ID_INSERT_POINTER);
action_id, DR_STE_V1_ACTION_ID_REMOVE_BY_SIZE);
action_id, DR_STE_V1_ACTION_ID_INSERT_INLINE);
action_id, DR_STE_V1_ACTION_ID_REMOVE_BY_SIZE);
MLX5_SET(ste_single_action_remove_header_v1, frst_s_action, action_id,
MLX5_SET(ste_double_action_insert_with_ptr_v1, scnd_d_action, action_id,
MLX5_SET(ste_single_action_remove_header_v1, s_action, action_id,
action_id, DR_STE_V1_ACTION_ID_ACCELERATED_LIST);
MLX5_SET(ste_single_action_modify_list_v1, s_action, action_id,
MLX5_SET(ste_double_action_aso_v1, d_action, action_id,
MLX5_SET(ste_double_action_set_v1, d_action, action_id, DR_STE_V1_ACTION_ID_SET);
MLX5_SET(ste_double_action_add_v1, d_action, action_id, DR_STE_V1_ACTION_ID_ADD);
MLX5_SET(ste_double_action_copy_v1, d_action, action_id, DR_STE_V1_ACTION_ID_COPY);
MLX5_SET(ste_single_action_remove_header_v1, hw_action, action_id,
MLX5_SET(ste_double_action_insert_with_inline_v1, hw_action, action_id,
MLX5_SET(ste_single_action_remove_header_size_v1, hw_action, action_id,
MLX5_SET(ste_double_action_insert_with_ptr_v3, d_action, action_id,
action_id, DR_STE_V1_ACTION_ID_REMOVE_BY_SIZE);
MLX5_SET(ste_single_action_remove_header_v3, hw_action, action_id,
MLX5_SET(ste_double_action_insert_with_inline_v3, hw_action, action_id,
MLX5_SET(ste_single_action_remove_header_size_v3, hw_action, action_id,
MLX5_SET(ste_double_action_insert_with_inline_v3, d_action, action_id,
action_id, DR_STE_V1_ACTION_ID_REMOVE_BY_SIZE);
MLX5_SET(ste_single_action_remove_header_v3, frst_s_action, action_id,
MLX5_SET(ste_double_action_insert_with_ptr_v3, scnd_d_action, action_id,
MLX5_SET(ste_single_action_remove_header_v3, s_action, action_id,
action_id, DR_STE_V1_ACTION_ID_INSERT_POINTER);
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
u8 action_id[0x8];
CH_INFO_SET_ACTION_ID(chan, info->action_id);
ch_info.action_id = RTW_CHANNEL_RADAR;
ch_info.action_id = RTW_CHANNEL_ACTIVE;
int action_id;
enum action_id action;