net/mlx5: fix green meter policy RSS queues
authorBing Zhao <bingz@nvidia.com>
Thu, 29 Jul 2021 16:04:04 +0000 (19:04 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 29 Jul 2021 20:06:42 +0000 (22:06 +0200)
commitd5bb76d5b0ef8e0a4680b60673602610516682b3
tree447a1ffc6196c99cb88355c77283b4a6313c42ec
parenta9e3a4a9e2dc583d827fbb4c7e427aa5af98281a
net/mlx5: fix green meter policy RSS queues

Both green policy and yellow policy could support RSS actions
simultaneous, the Rx queues configuration may be different between
them while the other fields should be the same.

When the only green color policy was supported in the past, the
queues copied and saved in the temporary workspace were used. Since
the yellow support was added, the queues stored in the thread
workspace would be overwritten by the yellow color policy. The flow
rule created using a meter with such a policy would have the same
RSS distribution for both green and yellow packets.

By using the meter action containers RSS information instead of the
workspace RSS, this overwritten can be prevented.

Fixes: b38a12272b3a ("net/mlx5: split meter color policy handling")

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c