]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_txq.c
net/mlx5: remove redundant started flag
[dpdk.git] / drivers / net / mlx5 / mlx5_txq.c
index ee9f703fd6db2732388ce156cee2768fdd4e01a5..f551f87fa68577a667ec82038871e35418b515b2 100644 (file)
@@ -490,7 +490,7 @@ mlx5_tx_queue_setup(struct rte_eth_dev *dev, uint16_t idx, uint16_t desc,
        if (txq != NULL) {
                DEBUG("%p: reusing already allocated queue index %u (%p)",
                      (void *)dev, idx, (void *)txq);
-               if (priv->started) {
+               if (dev->data->dev_started) {
                        priv_unlock(priv);
                        return -EEXIST;
                }