* [dpdk-dev] [Bug 398] MLX5 device won't start with no RX queue
@ 2020-02-13 10:56 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2020-02-13 10:56 UTC (permalink / raw)
To: dev
https://bugs.dpdk.org/show_bug.cgi?id=398
Bug ID: 398
Summary: MLX5 device won't start with no RX queue
Product: DPDK
Version: 19.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: srn@nexatech.fr
Target Milestone: ---
When using a mlx5 device as TX only (0 rx queue), the call to rte_eth_dev_start
fails with the following message:
net_mlx5: port 1 cannot allocate RSS queue list (0)
net_mlx5: port 1 reta config failed: Cannot allocate memory
From what I see in the code it's because, in mlx5_dev_start(), the very first
thing that is called without condition is mlx5_dev_configure_rss_reta(), which
immediately tries to malloc(nb_rx_queus*blablabla), which returns 0 because
requested size is 0.
My dirty fix is, in mlx5_dev_configure_rss_reta
(drivers/net/mlx5/mlx5_ethdev.c):
- if (priv->skip_default_rss_reta == 0)
+ if (priv->skip_default_rss_reta || rxqs_n == 0)
return ret;
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-13 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-13 10:56 [dpdk-dev] [Bug 398] MLX5 device won't start with no RX queue bugzilla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.