• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
2 // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3 
4 #include "act.h"
5 #include "en/tc_priv.h"
6 
7 static int
tc_act_parse_accept(struct mlx5e_tc_act_parse_state * parse_state,const struct flow_action_entry * act,struct mlx5e_priv * priv,struct mlx5_flow_attr * attr)8 tc_act_parse_accept(struct mlx5e_tc_act_parse_state *parse_state,
9 		    const struct flow_action_entry *act,
10 		    struct mlx5e_priv *priv,
11 		    struct mlx5_flow_attr *attr)
12 {
13 	attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
14 	attr->flags |= MLX5_ATTR_FLAG_ACCEPT;
15 
16 	return 0;
17 }
18 
19 struct mlx5e_tc_act mlx5e_tc_act_accept = {
20 	.parse_action = tc_act_parse_accept,
21 	.is_terminating_action = true,
22 };
23