• Home
  • Raw
  • Download

Lines Matching refs:action

145 			   struct mlx5_flow_act *action)  in parse_flow_flow_action()  argument
150 if (action->action & (MLX5_FLOW_CONTEXT_ACTION_ENCRYPT | in parse_flow_flow_action()
154 action->esp_id = (uintptr_t)maction->esp_aes_gcm.ctx; in parse_flow_flow_action()
155 action->action |= is_egress ? in parse_flow_flow_action()
162 if (action->action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR) in parse_flow_flow_action()
164 action->action |= MLX5_FLOW_CONTEXT_ACTION_MOD_HDR; in parse_flow_flow_action()
165 action->modify_hdr = in parse_flow_flow_action()
171 if (action->action & MLX5_FLOW_CONTEXT_ACTION_DECAP) in parse_flow_flow_action()
173 action->action |= MLX5_FLOW_CONTEXT_ACTION_DECAP; in parse_flow_flow_action()
178 if (action->action & in parse_flow_flow_action()
181 action->action |= in parse_flow_flow_action()
183 action->pkt_reformat = in parse_flow_flow_action()
197 struct mlx5_flow_act *action, u32 prev_type) in parse_flow_attr() argument
527 action->action |= MLX5_FLOW_CONTEXT_ACTION_DROP; in parse_flow_attr()
530 ret = parse_flow_flow_action(to_mflow_act(ib_spec->action.act), in parse_flow_attr()
531 flow_attr->flags & IB_FLOW_ATTR_FLAGS_EGRESS, action); in parse_flow_attr()
541 if (action->action & MLX5_FLOW_CONTEXT_ACTION_COUNT) in parse_flow_attr()
544 action->counters = ib_spec->flow_count.counters; in parse_flow_attr()
545 action->action |= MLX5_FLOW_CONTEXT_ACTION_COUNT; in parse_flow_attr()
602 (flow_act->action & (MLX5_FLOW_CONTEXT_ACTION_ENCRYPT | in is_valid_esp_aes_gcm()
605 bool is_drop = flow_act->action & MLX5_FLOW_CONTEXT_ACTION_DROP; in is_valid_esp_aes_gcm()
948 if (dst && !(flow_act.action & MLX5_FLOW_CONTEXT_ACTION_DROP)) { in _create_flow_rule()
976 if (flow_act.action & MLX5_FLOW_CONTEXT_ACTION_COUNT) { in _create_flow_rule()
992 if (flow_act.action & MLX5_FLOW_CONTEXT_ACTION_DROP) { in _create_flow_rule()
997 flow_act.action |= in _create_flow_rule()
1000 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_ALLOW; in _create_flow_rule()
1002 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in _create_flow_rule()
1510 flow_act->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in raw_fs_rule_add()
1515 flow_act->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in raw_fs_rule_add()
1519 flow_act->action |= MLX5_FLOW_CONTEXT_ACTION_ALLOW; in raw_fs_rule_add()
1525 if (flow_act->action & MLX5_FLOW_CONTEXT_ACTION_COUNT) { in raw_fs_rule_add()
1577 struct mlx5_ib_flow_action *action; in mlx5_ib_create_flow_action_esp() local
1611 action = kmalloc(sizeof(*action), GFP_KERNEL); in mlx5_ib_create_flow_action_esp()
1612 if (!action) in mlx5_ib_create_flow_action_esp()
1615 action->esp_aes_gcm.ib_flags = attr->flags; in mlx5_ib_create_flow_action_esp()
1634 accel_attrs.action |= MLX5_ACCEL_ESP_ACTION_ENCRYPT; in mlx5_ib_create_flow_action_esp()
1636 action->esp_aes_gcm.ctx = in mlx5_ib_create_flow_action_esp()
1638 if (IS_ERR(action->esp_aes_gcm.ctx)) { in mlx5_ib_create_flow_action_esp()
1639 err = PTR_ERR(action->esp_aes_gcm.ctx); in mlx5_ib_create_flow_action_esp()
1643 action->esp_aes_gcm.ib_flags = attr->flags; in mlx5_ib_create_flow_action_esp()
1645 return &action->ib_action; in mlx5_ib_create_flow_action_esp()
1648 kfree(action); in mlx5_ib_create_flow_action_esp()
1653 mlx5_ib_modify_flow_action_esp(struct ib_flow_action *action, in mlx5_ib_modify_flow_action_esp() argument
1657 struct mlx5_ib_flow_action *maction = to_mflow_act(action); in mlx5_ib_modify_flow_action_esp()
1718 static int mlx5_ib_destroy_flow_action(struct ib_flow_action *action) in mlx5_ib_destroy_flow_action() argument
1720 struct mlx5_ib_flow_action *maction = to_mflow_act(action); in mlx5_ib_destroy_flow_action()
1722 switch (action->type) { in mlx5_ib_destroy_flow_action()
1953 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_NS; in UVERBS_HANDLER()
1956 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_DROP; in UVERBS_HANDLER()
1983 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_COUNT; in UVERBS_HANDLER()
2203 struct ib_flow_action *action; in UVERBS_HANDLER() local
2224 action = mlx5_ib_create_modify_header(mdev, ft_type, num_actions, in); in UVERBS_HANDLER()
2225 if (IS_ERR(action)) in UVERBS_HANDLER()
2226 return PTR_ERR(action); in UVERBS_HANDLER()
2228 uverbs_flow_action_fill_action(action, uobj, &mdev->ib_dev, in UVERBS_HANDLER()