1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
4 #ifndef __MLX5_POST_ACTION_H__
5 #define __MLX5_POST_ACTION_H__
8 #include "lib/fs_chains.h"
10 struct mlx5_flow_attr;
12 struct mlx5e_tc_mod_hdr_acts;
14 struct mlx5e_post_act *
15 mlx5e_tc_post_act_init(struct mlx5e_priv *priv, struct mlx5_fs_chains *chains,
16 enum mlx5_flow_namespace_type ns_type);
19 mlx5e_tc_post_act_destroy(struct mlx5e_post_act *post_act);
21 struct mlx5e_post_act_handle *
22 mlx5e_tc_post_act_add(struct mlx5e_post_act *post_act, struct mlx5_flow_attr *attr);
25 mlx5e_tc_post_act_del(struct mlx5e_post_act *post_act, struct mlx5e_post_act_handle *handle);
27 struct mlx5_flow_table *
28 mlx5e_tc_post_act_get_ft(struct mlx5e_post_act *post_act);
31 mlx5e_tc_post_act_set_handle(struct mlx5_core_dev *dev,
32 struct mlx5e_post_act_handle *handle,
33 struct mlx5e_tc_mod_hdr_acts *acts);
35 #endif /* __MLX5_POST_ACTION_H__ */