1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
2 // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5 #include "en/tc_priv.h"
8 tc_act_can_offload_accept(struct mlx5e_tc_act_parse_state *parse_state,
9 const struct flow_action_entry *act,
11 struct mlx5_flow_attr *attr)
17 tc_act_parse_accept(struct mlx5e_tc_act_parse_state *parse_state,
18 const struct flow_action_entry *act,
19 struct mlx5e_priv *priv,
20 struct mlx5_flow_attr *attr)
22 attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
23 attr->flags |= MLX5_ATTR_FLAG_ACCEPT;
28 struct mlx5e_tc_act mlx5e_tc_act_accept = {
29 .can_offload = tc_act_can_offload_accept,
30 .parse_action = tc_act_parse_accept,