net/mlx5: fix socket field initialization
authorOlivier Gournet <ogournet@corp.free.fr>
Tue, 7 Nov 2017 09:59:37 +0000 (10:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 11:52:19 +0000 (12:52 +0100)
Fixes: a1366b1a2be3 ("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>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_txq.c

index 18c13b3..6b29aae 100644 (file)
@@ -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. */
index fbb2630..9c5860f 100644 (file)
@@ -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;