]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_flow.c
net/qede: remove flags from Tx entry
[dpdk.git] / drivers / net / mlx5 / mlx5_flow.c
index 7ab7f63264cfd8466386f2bd769779e2664c5cdc..c347f8130e114166974367881cf3c5edc2d8817b 100644 (file)
@@ -7881,10 +7881,11 @@ static void get_tunnel_miss(struct rte_eth_dev *dev, void *x)
 
        rte_spinlock_unlock(&thub->sl);
        ctx->tunnel = mlx5_flow_tunnel_allocate(dev, ctx->app_tunnel);
-       ctx->tunnel->refctn = 1;
        rte_spinlock_lock(&thub->sl);
-       if (ctx->tunnel)
+       if (ctx->tunnel) {
+               ctx->tunnel->refctn = 1;
                LIST_INSERT_HEAD(&thub->tunnels, ctx->tunnel, chain);
+       }
 }