net/mlx5: fix metering cleanup on stop
authorLi Zhang <lizh@nvidia.com>
Thu, 13 May 2021 08:35:44 +0000 (11:35 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 16 May 2021 12:58:23 +0000 (14:58 +0200)
commitec962bad14e143ac6853a0acbae13755f450f646
treefc72595b668d6491f647022c1737513467994ff0
parent4fd5e14848871a682840642fdd6ad776d0017080
net/mlx5: fix metering cleanup on stop

A meter may handle Rx queue reference in his sub-policies.
In stop operation, all the Rx queues are released.

Wrongly, the meter reference was not released before
destroying the Rx queues what cause an error in stop.

Release the Rx queues meter references in stop operation.

Fixes: fc6ce56bba05 ("net/mlx5: prepare sub-policy for flow with meter")

Signed-off-by: Li Zhang <lizh@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
drivers/net/mlx5/mlx5_flow_meter.c
drivers/net/mlx5/mlx5_trigger.c