Lines Matching refs:act_data
290 struct mlx5_action_construct_data *act_data; in __flow_hw_act_data_alloc() local
293 act_data = mlx5_ipool_zmalloc(priv->acts_ipool, &idx); in __flow_hw_act_data_alloc()
294 if (!act_data) in __flow_hw_act_data_alloc()
296 act_data->idx = idx; in __flow_hw_act_data_alloc()
297 act_data->type = type; in __flow_hw_act_data_alloc()
298 act_data->action_src = action_src; in __flow_hw_act_data_alloc()
299 act_data->action_dst = action_dst; in __flow_hw_act_data_alloc()
300 return act_data; in __flow_hw_act_data_alloc()
326 { struct mlx5_action_construct_data *act_data; in __flow_hw_act_data_general_append() local
328 act_data = __flow_hw_act_data_alloc(priv, type, action_src, action_dst); in __flow_hw_act_data_general_append()
329 if (!act_data) in __flow_hw_act_data_general_append()
331 LIST_INSERT_HEAD(&acts->act_list, act_data, next); in __flow_hw_act_data_general_append()
367 { struct mlx5_action_construct_data *act_data; in __flow_hw_act_data_encap_append() local
369 act_data = __flow_hw_act_data_alloc(priv, type, action_src, action_dst); in __flow_hw_act_data_encap_append()
370 if (!act_data) in __flow_hw_act_data_encap_append()
372 act_data->encap.src = encap_src; in __flow_hw_act_data_encap_append()
373 act_data->encap.dst = encap_dst; in __flow_hw_act_data_encap_append()
374 act_data->encap.len = len; in __flow_hw_act_data_encap_append()
375 LIST_INSERT_HEAD(&acts->act_list, act_data, next); in __flow_hw_act_data_encap_append()
408 { struct mlx5_action_construct_data *act_data; in __flow_hw_act_data_shared_rss_append() local
410 act_data = __flow_hw_act_data_alloc(priv, type, action_src, action_dst); in __flow_hw_act_data_shared_rss_append()
411 if (!act_data) in __flow_hw_act_data_shared_rss_append()
413 act_data->shared_rss.level = rss->origin.level; in __flow_hw_act_data_shared_rss_append()
414 act_data->shared_rss.types = !rss->origin.types ? RTE_ETH_RSS_IP : in __flow_hw_act_data_shared_rss_append()
416 act_data->shared_rss.idx = idx; in __flow_hw_act_data_shared_rss_append()
417 LIST_INSERT_HEAD(&acts->act_list, act_data, next); in __flow_hw_act_data_shared_rss_append()
783 struct mlx5_action_construct_data *act_data, in flow_hw_shared_action_get() argument
792 int act_type = act_data->type; in flow_hw_shared_action_get()
796 rss_desc.level = act_data->shared_rss.level; in flow_hw_shared_action_get()
797 rss_desc.types = act_data->shared_rss.types; in flow_hw_shared_action_get()
800 (dev, act_data->shared_rss.idx, hash_fields); in flow_hw_shared_action_get()
811 act_data->type); in flow_hw_shared_action_get()
842 struct mlx5_action_construct_data act_data; in flow_hw_shared_action_construct() local
850 memset(&act_data, 0, sizeof(act_data)); in flow_hw_shared_action_construct()
853 act_data.type = MLX5_RTE_FLOW_ACTION_TYPE_RSS; in flow_hw_shared_action_construct()
858 act_data.shared_rss.idx = idx; in flow_hw_shared_action_construct()
859 act_data.shared_rss.level = shared_rss->origin.level; in flow_hw_shared_action_construct()
860 act_data.shared_rss.types = !shared_rss->origin.types ? in flow_hw_shared_action_construct()
865 (dev, &act_data, item_flags, rule_act)) in flow_hw_shared_action_construct()
909 struct mlx5_action_construct_data *act_data; in flow_hw_actions_construct() local
938 LIST_FOREACH(act_data, &hw_acts->act_list, next) { in flow_hw_actions_construct()
945 action = &actions[act_data->action_src]; in flow_hw_actions_construct()
947 (int)action->type == act_data->type); in flow_hw_actions_construct()
948 switch (act_data->type) { in flow_hw_actions_construct()
952 &rule_acts[act_data->action_dst])) in flow_hw_actions_construct()
961 rule_acts[act_data->action_dst].tag.value = tag; in flow_hw_actions_construct()
970 rule_acts[act_data->action_dst].action = in flow_hw_actions_construct()
982 rule_acts[act_data->action_dst].action = hrxq->action; in flow_hw_actions_construct()
989 (dev, act_data, item_flags, in flow_hw_actions_construct()
990 &rule_acts[act_data->action_dst])) in flow_hw_actions_construct()
996 rte_memcpy((void *)&buf[act_data->encap.dst], in flow_hw_actions_construct()
997 enc_item[act_data->encap.src].spec, in flow_hw_actions_construct()
998 act_data->encap.len); in flow_hw_actions_construct()
1003 rte_memcpy((void *)&buf[act_data->encap.dst], in flow_hw_actions_construct()
1004 enc_item[act_data->encap.src].spec, in flow_hw_actions_construct()
1005 act_data->encap.len); in flow_hw_actions_construct()
1011 rte_memcpy((void *)&buf[act_data->encap.dst], in flow_hw_actions_construct()
1012 raw_encap_data->data, act_data->encap.len); in flow_hw_actions_construct()
1014 act_data->encap.len); in flow_hw_actions_construct()