net/mlx5: fix shared RSS destroy
authorRongwei Liu <rongweil@nvidia.com>
Wed, 2 Mar 2022 11:19:38 +0000 (13:19 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 7 Mar 2022 10:43:07 +0000 (11:43 +0100)
commite1786fd53d7e5631c9ffb9b2fba0fd402bc8cf74
treecbd4f0b7c98a1854e5059ce67b699ac2b2418d2c
parent6ae5c238371aeb86359c5a6c1eb1330e1cc25fca
net/mlx5: fix shared RSS destroy

When both shared and non-shared RSS actions are present in single
flow rule shared RSS index is unset by mistake.

For example:
1. flow indirect_action 0 create action_id 3 ingress action RSS ...
2. set sample_actions 0 mark id 43690 / queue index 0 / end
3. flow create 0 ingress group 107 pattern eth / sample ratio 2
   index 0  / indirect 3 / end

PMD translates the indirect action to a shared RSS description at first.
In the split prefix flow, RSS->shared_RSS is unset when translating
sample queue action, the subfix flow will treat the RSS as non-shared.

Fixes: 8e61555657b2 ("net/mlx5: fix shared RSS and mark actions combination")
Cc: stable@dpdk.org
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c