From a49b617b86fede7ffd311fd03099204998e35529 Mon Sep 17 00:00:00 2001 From: Olivier Gournet Date: Tue, 7 Nov 2017 10:59:37 +0100 Subject: [PATCH] net/mlx5: fix socket field initialization Fixes: a1366b1a2be3 ("net/mlx5: add reference counter on DPDK Rx queues") Signed-off-by: Olivier Gournet Acked-by: Nelio Laranjeiro --- 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 18c13b3c76..6b29aaee6e 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 fbb263023e..9c5860ff4b 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.20.1