net/mlx5: support meter hierarchy drop count
authorShun Hao <shunh@nvidia.com>
Tue, 6 Jul 2021 13:14:48 +0000 (16:14 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:33 +0000 (22:09 +0200)
commit8e5c9fea4459190cff2441076376df6f56c06811
tree47d29c21bf29591acdf73332e8fb9ac9cf7d63e1
parent50cc92dde839ba7904b7ffa3aa0bb7b1a8e0e8c5
net/mlx5: support meter hierarchy drop count

When using meter hierarchy with multiple meters, every meter may have
drop counter, so a packet being set red color by one meter should be
counted to that specific meter only.

To support this, add tag action in the color rule so packet going to
next new meter can have its meter id, so as to be counted to the
correct drop counter in drop table.

Signed-off-by: Shun Hao <shunh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c