numam-dpdk/drivers/net/mlx5
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: 63bd16292c ("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>
2020-02-21 11:41:21 +01:00
..
Makefile common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
meson.build common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
mlx5_defs.h net/mlx5: fix hairpin queue capacity 2020-02-19 18:09:28 +01:00
mlx5_ethdev.c net/mlx: replace hardcoded value with macro 2020-02-14 12:42:12 +01:00
mlx5_flow_dv.c net/mlx5: fix match on ethertype and CVLAN tag 2020-02-21 11:41:21 +01:00
mlx5_flow_meter.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow_verbs.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow.c net/mlx5: fix VLAN actions in meter 2020-02-21 11:41:21 +01:00
mlx5_flow.h net/mlx5: fix VLAN actions in meter 2020-02-21 11:41:21 +01:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c net/mlx5: fix hairpin queue capacity 2020-02-19 18:09:28 +01:00
mlx5_rxtx_vec_altivec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_neon.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_sse.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx.c net/mlx5: fix legacy multi-packet write session 2020-02-14 12:42:12 +01:00
mlx5_rxtx.h net/mlx5: add Rx/Tx burst mode info 2020-02-05 09:51:21 +01:00
mlx5_socket.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_stats.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_trigger.c net/mlx5: fix running without Rx queue 2020-02-21 11:41:21 +01:00
mlx5_txq.c net/mlx5: fix hairpin queue capacity 2020-02-19 18:09:28 +01:00
mlx5_utils.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_utils.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c net/mlx5: add BlueField-2 device ID 2020-02-19 13:51:06 +01:00
mlx5.h net/mlx5: make FDB default rule optional 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00