When the RSS queues' types are not uniformed, i.e, mixed with normal Rx queue and hairpin queue, PMD accept this flow after commit[1] instead of rejecting it. This because commit[1] creates Rx queue object as DevX type via DevX API instead of IBV type via Verbs, in which the latter will check the queues' type when creating Verbs ind table but the former doesn't check when creating DevX ind table. However, in any case, logically PMD should check whether the input configuration of RSS action is reasonable or not, which should include queues' type check as well as the others. So add the check of RSS queues' type in validation function to fix issue. [1]: commit 6deb19e1b2d2 ("net/mlx5: separate Rx queue object creations") Fixes: 63bd16292c3a ("net/mlx5: support RSS on hairpin") Cc: stable@dpdk.org Signed-off-by: Xiaoyu Min <jackmin@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%