DPDK patches and discussions
 help / color / Atom feed
* [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, back to index

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

DPDK patches and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/ public-inbox