]> git.droids-corp.org - dpdk.git/commit
net/mlx5: support yellow meter action in hierarchy
authorShun Hao <shunh@nvidia.com>
Fri, 13 May 2022 07:33:06 +0000 (10:33 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 1 Jun 2022 07:49:36 +0000 (09:49 +0200)
commitbf62fb769314572f7de9ea5ed38e540b91bdf8a4
tree3529c3d87d08cce42a09d0669538c55c38fbc56f
parent6b838de3d5416d5edf14a171a73d5216d3b3e5bb
net/mlx5: support yellow meter action in hierarchy

This patch adds the support of meter action for yellow meter policy
flow, so can use meter action for both green and yellow policy flows
in meter hierarchy.
Currently must use the same meter within one meter policy. Packets
passing green/yellow policy flow will have previous meter color of
green/yellow in subsequent meter.

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