| 471 | } |
| 472 | |
| 473 | int cxgbe_dev_tx_queue_start(struct rte_eth_dev *eth_dev, uint16_t tx_queue_id) |
| 474 | { |
| 475 | int ret; |
| 476 | struct sge_eth_txq *txq = (struct sge_eth_txq *) |
| 477 | (eth_dev->data->tx_queues[tx_queue_id]); |
| 478 | |
| 479 | dev_debug(NULL, "%s: tx_queue_id = %d\n", __func__, tx_queue_id); |
| 480 | |
| 481 | ret = t4_sge_eth_txq_start(txq); |
| 482 | if (ret == 0) |
| 483 | eth_dev->data->tx_queue_state[tx_queue_id] = RTE_ETH_QUEUE_STATE_STARTED; |
| 484 | |
| 485 | return ret; |
| 486 | } |
| 487 | |
| 488 | int cxgbe_dev_tx_queue_stop(struct rte_eth_dev *eth_dev, uint16_t tx_queue_id) |
| 489 | { |
no test coverage detected