DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/mlx5: Allow configuring mlx5 port for TX only
@ 2020-04-13 13:15 Mohsin Shaikh
  2020-04-13 14:47 ` [dpdk-dev] [PATCH v2] " Mohsin Shaikh
  0 siblings, 1 reply; 3+ messages in thread
From: Mohsin Shaikh @ 2020-04-13 13:15 UTC (permalink / raw)
  To: dev; +Cc: stable, akozyrev, Mohsin Shaikh

Configuring mlx5 port with 0 rx rings and 1 or more tx rings causes following
error in dev_start:
    net_mlx5: port 1 cannot allocate RSS queue list (0)
    net_mlx5: port 1 reta config failed: Cannot allocate memory
Skip mlx5_dev_configure_rss_reta() when there are no rx rings.

Cc: stable@dpdk.org
Signed-off-by: Mohsin Shaikh <mohsinshaikh@niometrics.com>
---
 drivers/net/mlx5/mlx5_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index d7d3bc7..1d443c1 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -463,7 +463,7 @@ struct ethtool_link_settings {
 	unsigned int *rss_queue_arr = NULL;
 	unsigned int rss_queue_n = 0;
 
-	if (priv->skip_default_rss_reta)
+	if (priv->skip_default_rss_reta || !rxqs_n)
 		return ret;
 	rss_queue_arr = rte_malloc("", rxqs_n * sizeof(unsigned int), 0);
 	if (!rss_queue_arr) {
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-13 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 13:15 [dpdk-dev] [PATCH] net/mlx5: Allow configuring mlx5 port for TX only Mohsin Shaikh
2020-04-13 14:47 ` [dpdk-dev] [PATCH v2] " Mohsin Shaikh
2020-04-13 18:50   ` Alexander Kozyrev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).