This adds support for meter hierarchy, which means multiple meters can be chained together, and using the header meter of hierarchy in a flow will apply all meters in hierarchy to that flow.
Shun Hao (4): net/mlx5: support meter action in meter policy net/mlx5: support meter hierarchy drop count net/mlx5: meter hierarchy destroy and cleanup net/mlx5: validate meter action in policy doc/guides/nics/mlx5.rst | 15 + doc/guides/rel_notes/release_21_08.rst | 6 + drivers/net/mlx5/mlx5.h | 32 +- drivers/net/mlx5/mlx5_flow.c | 123 +++-- drivers/net/mlx5/mlx5_flow.h | 12 + drivers/net/mlx5/mlx5_flow_dv.c | 701 +++++++++++++++++++++---- drivers/net/mlx5/mlx5_flow_meter.c | 175 +++++- 7 files changed, 935 insertions(+), 129 deletions(-) -- 2.21.0