]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc_ethdev.c
net/sfc: remove TxQ control from shared TxQ info
[dpdk.git] / drivers / net / sfc / sfc_ethdev.c
index 3d38bf661534dec2c059643012005dfc5b30fa5f..aa857ec74b527da953b8692ba70df9bea0d2a6a2 100644 (file)
@@ -1248,7 +1248,7 @@ sfc_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)
        if (sa->state != SFC_ADAPTER_STARTED)
                goto fail_not_started;
 
-       if (sa->txq_info[tx_queue_id].txq == NULL)
+       if (sa->txq_info[tx_queue_id].state != SFC_TXQ_INITIALIZED)
                goto fail_not_setup;
 
        rc = sfc_tx_qstart(sa, tx_queue_id);