DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/mlx5: fix socket field initialization
@ 2017-11-07  9:59 Olivier Gournet
  2017-11-07 10:08 ` Nélio Laranjeiro
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Gournet @ 2017-11-07  9:59 UTC (permalink / raw)
  To: dev; +Cc: Olivier Gournet

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

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

* Re: [dpdk-dev] [PATCH] net/mlx5: fix socket field initialization
  2017-11-07  9:59 [dpdk-dev] [PATCH] net/mlx5: fix socket field initialization Olivier Gournet
@ 2017-11-07 10:08 ` Nélio Laranjeiro
  2017-11-07 11:50   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Nélio Laranjeiro @ 2017-11-07 10:08 UTC (permalink / raw)
  To: Olivier Gournet; +Cc: dev

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

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

* Re: [dpdk-dev] [PATCH] net/mlx5: fix socket field initialization
  2017-11-07 10:08 ` Nélio Laranjeiro
@ 2017-11-07 11:50   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2017-11-07 11:50 UTC (permalink / raw)
  To: Olivier Gournet; +Cc: dev, Nélio Laranjeiro

07/11/2017 11:08, Nélio Laranjeiro:
> 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>
> 
> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>

Applied, thanks

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

end of thread, other threads:[~2017-11-07 11:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07  9:59 [dpdk-dev] [PATCH] net/mlx5: fix socket field initialization Olivier Gournet
2017-11-07 10:08 ` Nélio Laranjeiro
2017-11-07 11:50   ` Thomas Monjalon

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).