summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxq.c
diff options
context:
space:
mode:
authorOlivier Gournet <ogournet@corp.free.fr>2017-11-07 10:59:37 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-11-07 12:52:19 +0100
commita49b617b86fede7ffd311fd03099204998e35529 (patch)
treeccc76304f6876ced0c6e78292560dd00fbf6791d /drivers/net/mlx5/mlx5_rxq.c
parentaee4a03fee4f24fe7d46a17f4e75853b86fd36cc (diff)
downloaddpdk-a49b617b86fede7ffd311fd03099204998e35529.zip
dpdk-a49b617b86fede7ffd311fd03099204998e35529.tar.gz
dpdk-a49b617b86fede7ffd311fd03099204998e35529.tar.xz
net/mlx5: fix socket field initialization
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>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxq.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index 18c13b3..6b29aae 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. */