net/mlx5: fix meter policy with RSS action
authorLi Zhang <lizh@nvidia.com>
Wed, 23 Jun 2021 07:24:40 +0000 (10:24 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:20 +0000 (22:09 +0200)
commit9f4a192328981074770f263d504807539239e211
tree840aeecd99789a08cfb37e95c6f0510b0e97c6c5
parenta6a18d06f5ae900eabba24325f49ee2ef86449c0
net/mlx5: fix meter policy with RSS action

When creating the meter sub-policy RSS rule,
the RSS descriptor was used before its update.
It also need update tunnel bit in RSS descriptor
after flow translate.

Use it only when it is updated.

Fixes: ec962bad14e ("net/mlx5: fix metering cleanup on stop")
Cc: stable@dpdk.org
Signed-off-by: Li Zhang <lizh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c