1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
3 
4 #ifndef __MLX5_EN_TC_ACT_VLAN_H__
5 #define __MLX5_EN_TC_ACT_VLAN_H__
6 
7 #include <net/flow_offload.h>
8 #include "en/tc_priv.h"
9 
10 struct pedit_headers_action;
11 
12 int
13 mlx5e_tc_act_vlan_add_push_action(struct mlx5e_priv *priv,
14 				  struct mlx5_flow_attr *attr,
15 				  struct net_device **out_dev,
16 				  struct netlink_ext_ack *extack);
17 
18 int
19 mlx5e_tc_act_vlan_add_pop_action(struct mlx5e_priv *priv,
20 				 struct mlx5_flow_attr *attr,
21 				 struct netlink_ext_ack *extack);
22 
23 int
24 mlx5e_tc_act_vlan_add_rewrite_action(struct mlx5e_priv *priv, int namespace,
25 				     const struct flow_action_entry *act,
26 				     struct mlx5e_tc_flow_parse_attr *parse_attr,
27 				     struct pedit_headers_action *hdrs,
28 				     u32 *action, struct netlink_ext_ack *extack);
29 
30 #endif /* __MLX5_EN_TC_ACT_VLAN_H__ */
31