DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Nélio Laranjeiro" <nelio.laranjeiro@6wind.com>
To: Olivier Gournet <ogournet@corp.free.fr>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix socket field initialization
Date: Tue, 7 Nov 2017 11:08:54 +0100	[thread overview]
Message-ID: <20171107100854.7sngrsohkp5yuegx@laranjeiro-vm> (raw)
In-Reply-To: <1510048777-31098-1-git-send-email-ogournet@corp.free.fr>

On Tue, Nov 07, 2017 at 10:59:37AM +0100, Olivier Gournet wrote:
> Fixes: a1366b1a2be (net/mlx5: add reference counter on DPDK Rx queues)
> 
> Signed-off-by: Olivier Gournet <ogournet@corp.free.fr>
> ---
>  drivers/net/mlx5/mlx5_rxq.c | 1 +
>  drivers/net/mlx5/mlx5_txq.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
> index a1f382b..53bb423 100644
> --- a/drivers/net/mlx5/mlx5_rxq.c
> +++ b/drivers/net/mlx5/mlx5_rxq.c
> @@ -894,6 +894,7 @@ mlx5_priv_rxq_new(struct priv *priv, uint16_t idx, uint16_t desc,
>  				 0, socket);
>  	if (!tmpl)
>  		return NULL;
> +	tmpl->socket = socket;
>  	if (priv->dev->data->dev_conf.intr_conf.rxq)
>  		tmpl->irq = 1;
>  	/* Enable scattered packets support for this queue if necessary. */
> diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
> index fbb2630..9c5860f 100644
> --- a/drivers/net/mlx5/mlx5_txq.c
> +++ b/drivers/net/mlx5/mlx5_txq.c
> @@ -580,6 +580,7 @@ mlx5_priv_txq_new(struct priv *priv, uint16_t idx, uint16_t desc,
>  	assert(desc > MLX5_TX_COMP_THRESH);
>  	tmpl->txq.flags = conf->txq_flags;
>  	tmpl->priv = priv;
> +	tmpl->socket = socket;
>  	tmpl->txq.elts_n = log2above(desc);
>  	if (priv->mps == MLX5_MPW_ENHANCED)
>  		tmpl->txq.mpw_hdr_dseg = priv->mpw_hdr_dseg;
> -- 
> 2.1.4


Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>

Thanks,

-- 
Nélio Laranjeiro
6WIND

  reply	other threads:[~2017-11-07 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-07  9:59 Olivier Gournet
2017-11-07 10:08 ` Nélio Laranjeiro [this message]
2017-11-07 11:50   ` Thomas Monjalon

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=20171107100854.7sngrsohkp5yuegx@laranjeiro-vm \
    --to=nelio.laranjeiro@6wind.com \
    --cc=dev@dpdk.org \
    --cc=ogournet@corp.free.fr \
    /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).