Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx5: fix RSS and queue action validation
mlx5 PMD supports configuration where Rx queues managed by DPDK are not set up. Externally allocated RQs can be used by mapping them to some DPDK Rx queue indexes using rte_pmd_mlx5_external_rx_queue_id_map() API. In this case, mlx5 PMD will allow creating flow rules which reference such external RQ. HWS validation of RSS and QUEUE unmasked flow actions in actions templates worked by constructing a "mock" action which was then checked. This procedure incorrectly assumed that queue index 0 can be used as "always valid queue", which is not the case in scenario mentioned above, because queue 0 was not set up This patch fixes that by removing "mock" actions, since there's no real data available for validation. RSS and QUEUE validation in unmasked action case only checks flow attributes. Fixes: d6dc072 ("net/mlx5: validate flow actions in table creation") Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
- Loading branch information