]> git.droids-corp.org - dpdk.git/commit
net/mlx5: support yellow meter action for hierarchy tag rule
authorShun Hao <shunh@nvidia.com>
Fri, 13 May 2022 07:33:07 +0000 (10:33 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 1 Jun 2022 07:49:38 +0000 (09:49 +0200)
commit3dc7afa2fa838948759fec293b09369bac539765
tree8d35f3bf7df3b03aa57ff7893bd24d4cf69e7cd2
parentbf62fb769314572f7de9ea5ed38e540b91bdf8a4
net/mlx5: support yellow meter action for hierarchy tag rule

When a hierarchy meter is shared by other ports, it's needed to iterate
all meter policies in hierarchy to create tag rules, to set packet with
next meter ID, which will be used by related meter drop count.
This patch adds the tag rule for yellow support in hierarchy, so both
green/yellow policy flows can set the correct meter ID.

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