| 94 | } |
| 95 | |
| 96 | int __rte_cold |
| 97 | ionic_dev_tx_queue_stop(struct rte_eth_dev *eth_dev, uint16_t tx_queue_id) |
| 98 | { |
| 99 | struct ionic_tx_stats *stats; |
| 100 | struct ionic_tx_qcq *txq; |
| 101 | |
| 102 | IONIC_PRINT(DEBUG, "Stopping TX queue %u", tx_queue_id); |
| 103 | |
| 104 | txq = eth_dev->data->tx_queues[tx_queue_id]; |
| 105 | |
| 106 | eth_dev->data->tx_queue_state[tx_queue_id] = |
| 107 | RTE_ETH_QUEUE_STATE_STOPPED; |
| 108 | |
| 109 | /* |
| 110 | * Note: we should better post NOP Tx desc and wait for its completion |
| 111 | * before disabling Tx queue |
| 112 | */ |
| 113 | |
| 114 | ionic_lif_txq_deinit(txq); |
| 115 | |
| 116 | /* Free all buffers from descriptor ring */ |
| 117 | ionic_tx_empty(txq); |
| 118 | |
| 119 | stats = &txq->stats; |
| 120 | IONIC_PRINT(DEBUG, "TX queue %u pkts %ju tso %ju", |
| 121 | txq->qcq.q.index, stats->packets, stats->tso); |
| 122 | |
| 123 | return 0; |
| 124 | } |
| 125 | |
| 126 | int __rte_cold |
| 127 | ionic_dev_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t tx_queue_id, |
no test coverage detected