net/mlx5: validate meter action in policy
authorShun Hao <shunh@nvidia.com>
Tue, 6 Jul 2021 13:14:50 +0000 (16:14 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:35 +0000 (22:09 +0200)
commita3b7af90babafe72163a033558316bbe899977d2
tree21ad1159e9aeb5f6320333564fb867eee7800cd3
parentf890b030e0b8e48081c361e620cd53076859a218
net/mlx5: validate meter action in policy

This adds the validation when creating a policy with meter action.

Currently meter action is only allowed for green color in policy, and
8 meters are supported at maximum in one meter hierarchy.

Signed-off-by: Shun Hao <shunh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_21_08.rst
drivers/net/mlx5/mlx5_flow_dv.c