DPDK patches and discussions
 help / color / mirror / Atom feed
From: Alexander Kozyrev <akozyrev@mellanox.com>
To: Mohsin Shaikh <mohsinshaikh@niometrics.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: "stable@dpdk.org" <stable@dpdk.org>,
	Slava Ovsiienko <viacheslavo@mellanox.com>,
	Shiri Kuzin <shirik@mellanox.com>
Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: Allow configuring mlx5 port for TX only
Date: Mon, 13 Apr 2020 18:50:36 +0000	[thread overview]
Message-ID: <AM0PR05MB456173EC94145F4B37A15984A2DD0@AM0PR05MB4561.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <1586789242-9984-1-git-send-email-mohsinshaikh@niometrics.com>

Hi Mohsin, the problem you described has been already fixed by 606d690 ("net/mlx5: fix running without Rx queue").
I guess you see the issue on 19.11 branch, right? Could you please apply this patch and verify that it fixes the issue for you?

Regards,
Alex


> -----Original Message-----
> From: Mohsin Shaikh <mohsinshaikh@niometrics.com>
> Sent: Monday, April 13, 2020 10:47
> To: dev@dpdk.org
> Cc: stable@dpdk.org; Alexander Kozyrev <akozyrev@mellanox.com>; Mohsin
> Shaikh <mohsinshaikh@niometrics.com>
> Subject: [PATCH v2] net/mlx5: Allow configuring mlx5 port for TX only
> 
> 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>
> ---
> 
> v2: Fix coding style issue COMMIT_LOG_LONG_LINE
> 
> ---
>  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


      reply	other threads:[~2020-04-13 18:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-13 13:15 [dpdk-dev] [PATCH] " Mohsin Shaikh
2020-04-13 14:47 ` [dpdk-dev] [PATCH v2] " Mohsin Shaikh
2020-04-13 18:50   ` Alexander Kozyrev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR05MB456173EC94145F4B37A15984A2DD0@AM0PR05MB4561.eurprd05.prod.outlook.com \
    --to=akozyrev@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=mohsinshaikh@niometrics.com \
    --cc=shirik@mellanox.com \
    --cc=stable@dpdk.org \
    --cc=viacheslavo@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).