1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
4 #ifndef __MLX5_EN_POST_METER_H__
5 #define __MLX5_EN_POST_METER_H__
7 #define packet_color_to_reg { \
8 .mfield = MLX5_ACTION_IN_FIELD_METADATA_REG_C_5, \
11 .soffset = MLX5_BYTE_OFF(fte_match_param, \
12 misc_parameters_2.metadata_reg_c_5), \
15 struct mlx5e_post_meter_priv;
17 struct mlx5_flow_table *
18 mlx5e_post_meter_get_ft(struct mlx5e_post_meter_priv *post_meter);
20 struct mlx5e_post_meter_priv *
21 mlx5e_post_meter_init(struct mlx5e_priv *priv,
22 enum mlx5_flow_namespace_type ns_type,
23 struct mlx5e_post_act *post_act);
25 mlx5e_post_meter_cleanup(struct mlx5e_post_meter_priv *post_meter);
27 #endif /* __MLX5_EN_POST_METER_H__ */