Shiri Kuzin
606d690548
net/mlx5: fix running without Rx queue
When running mlx5_dev_start in mlx5_ethdev the function calls mlx5_dev_configure_rss_reta in order to configure the rxq's. Before mlx5_dev_configure_rss_reta there isn't a check whether there are rxq's and if rxq's are 0 the function fails. For example, this command: /build/app/test-pmd/testpmd -n 4 -w 0000:08:00.0,rx_vec_en=0 -- --burst=64 --mbcache=512 -i --nb-cores=27 --txd=2048 --rxd=2048 --vxlan-gpe-port=6081 --mp-alloc=xbuf --rxq 0 --forward-mode=txonly would fail. In order to fix this issue, we should call mlx5_dev_configure_rss_reta only if we have rxq's. Fixes: 63bd16292c3a ("net/mlx5: support RSS on hairpin") Cc: stable@dpdk.org Reported-by: Sylvain Rodon <srn@nexatech.fr> Signed-off-by: Shiri Kuzin <shirik@mellanox.com> Acked-by: Matan Azrad <matan@mellanox.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%