net/mlx5: fix shared RSS capability check
authorDekel Peled <dekelp@nvidia.com>
Wed, 3 Feb 2021 10:08:42 +0000 (12:08 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Feb 2021 17:44:26 +0000 (18:44 +0100)
commitae8fdc8067c77496bc07680d42f8aa7f6be34a5b
treefa04f7baaff1ed8cab175d51a44e0fb0e668f6f8
parentf62490e64d60cb564240721d55f8b51d2bd719a9
net/mlx5: fix shared RSS capability check

Existing code to create shared RSS action doesn't fully check
driver capabilities.
Using older driver, if DevX capabilities are insufficient,
the IBV operations are used.
In this case the ind_table_modify operation is not supported, and
shared RSS action can't be modified after creation.

This patch adds check of driver capability, and fails the validation
for shared RSS action in case it is insufficient.

Fixes: d2046c09aa64 ("net/mlx5: support shared action for RSS")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c