net/mlx5: fix shared RSS and mark actions combination
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 15 Dec 2020 03:46:24 +0000 (11:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:34:51 +0000 (16:34 +0100)
commit8e61555657b227d967a91b8964c8d1e4e9d17695
treeeb5f7893286fea052a0b57e698125ee093a5c821
parent16047bd015e292df2a6c61b8f4584f7c166d2f51
net/mlx5: fix shared RSS and mark actions combination

In order to allow mbuf mark ID update in Rx data-path, there is a
mechanism in the PMD to enable it according to the rte_flows.
When a flow with mark ID and RSS/QUEUE action exists, all the relevant
Rx queues will be enabled to report the mark ID.

When shared RSS action is combined with mark action, the PMD mechanism
misses the Rx queues updates.

This commit handles the shared RSS case in the mechanism too.

Fixes: e1592b6c4dea ("net/mlx5: make Rx queue thread safe")
Cc: stable@dpdk.org
Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c