Lines Matching refs:action
81 struct devlink_dpipe_action action = {0}; in mlxsw_sp_dpipe_table_erif_actions_dump() local
84 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_erif_actions_dump()
85 action.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_actions_dump()
86 action.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_L3_FORWARD; in mlxsw_sp_dpipe_table_erif_actions_dump()
88 err = devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_erif_actions_dump()
92 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_erif_actions_dump()
93 action.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_actions_dump()
94 action.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_L3_DROP; in mlxsw_sp_dpipe_table_erif_actions_dump()
96 return devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_erif_actions_dump()
113 struct devlink_dpipe_action *action) in mlxsw_sp_erif_match_action_prepare() argument
115 action->type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_erif_match_action_prepare()
116 action->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare()
117 action->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_L3_FORWARD; in mlxsw_sp_erif_match_action_prepare()
128 struct devlink_dpipe_action *action) in mlxsw_sp_erif_entry_prepare() argument
142 action_value->action = action; in mlxsw_sp_erif_entry_prepare()
196 struct devlink_dpipe_action action = {0}; in mlxsw_sp_dpipe_table_erif_entries_dump() local
207 mlxsw_sp_erif_match_action_prepare(&match, &action); in mlxsw_sp_dpipe_table_erif_entries_dump()
209 &action_value, &action); in mlxsw_sp_dpipe_table_erif_entries_dump()
352 struct devlink_dpipe_action action = {0}; in mlxsw_sp_dpipe_table_host_actions_dump() local
354 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_host_actions_dump()
355 action.header = &devlink_dpipe_header_ethernet; in mlxsw_sp_dpipe_table_host_actions_dump()
356 action.field_id = DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC; in mlxsw_sp_dpipe_table_host_actions_dump()
358 return devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_host_actions_dump()
369 struct devlink_dpipe_action *action, in mlxsw_sp_dpipe_table_host_match_action_prepare() argument
395 action->type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_host_match_action_prepare()
396 action->header = &devlink_dpipe_header_ethernet; in mlxsw_sp_dpipe_table_host_match_action_prepare()
397 action->field_id = DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC; in mlxsw_sp_dpipe_table_host_match_action_prepare()
405 struct devlink_dpipe_action *action, in mlxsw_sp_dpipe_table_host_entry_prepare() argument
446 action_value->action = action; in mlxsw_sp_dpipe_table_host_entry_prepare()
624 struct devlink_dpipe_action action = {0}; in mlxsw_sp_dpipe_table_host_entries_dump() local
634 mlxsw_sp_dpipe_table_host_match_action_prepare(matches, &action, type); in mlxsw_sp_dpipe_table_host_entries_dump()
637 &action, type); in mlxsw_sp_dpipe_table_host_entries_dump()
891 struct devlink_dpipe_action action = {0}; in mlxsw_sp_dpipe_table_adj_actions_dump() local
894 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_adj_actions_dump()
895 action.header = &devlink_dpipe_header_ethernet; in mlxsw_sp_dpipe_table_adj_actions_dump()
896 action.field_id = DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC; in mlxsw_sp_dpipe_table_adj_actions_dump()
898 err = devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_adj_actions_dump()
902 action.type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_adj_actions_dump()
903 action.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_actions_dump()
904 action.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_adj_actions_dump()
906 return devlink_dpipe_action_put(skb, &action); in mlxsw_sp_dpipe_table_adj_actions_dump()
938 struct devlink_dpipe_action *action; in mlxsw_sp_dpipe_table_adj_match_action_prepare() local
956 action = &actions[MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
957 action->type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
958 action->header = &devlink_dpipe_header_ethernet; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
959 action->field_id = DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
961 action = &actions[MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
962 action->type = DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
963 action->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
964 action->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
975 struct devlink_dpipe_action *action; in mlxsw_sp_dpipe_table_adj_entry_prepare() local
1011 action = &actions[MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1014 action_value->action = action; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1020 action = &actions[MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1023 action_value->action = action; in mlxsw_sp_dpipe_table_adj_entry_prepare()