net/mlx5: fix default queue number in RSS flow rule
authorLior Margalit <lmargalit@nvidia.com>
Tue, 27 Jul 2021 06:46:20 +0000 (09:46 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 29 Jul 2021 16:01:21 +0000 (18:01 +0200)
commit4a5a1e6b624e46f24b13d095e35a9b8699bd59b9
tree275096e9927f873ac7da6108c7d86f49b8520b4e
parent5e1db76dd8c740629ef0e9569099bf67a3cbbf9d
net/mlx5: fix default queue number in RSS flow rule

The selection flags for the RX hash define how the received packets will
be distributed between multiple queues.
When creating a new TIR, the queue_num is set to 1 if none of the selection
flags is set.

Applied the same to the RSS desc before checking if it matches a cached
TIR object to save creating a new object every time.

Fixes: fabf8a37241c ("net/mlx5: fix shared RSS action release")
Cc: stable@dpdk.org
Signed-off-by: Lior Margalit <lmargalit@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c