Lines Matching refs:tx_queue_id
97 ionic_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) in ionic_dev_tx_queue_stop() argument
99 ionic_dev_tx_queue_stop_firsthalf(dev, tx_queue_id); in ionic_dev_tx_queue_stop()
100 ionic_dev_tx_queue_stop_secondhalf(dev, tx_queue_id); in ionic_dev_tx_queue_stop()
107 uint16_t tx_queue_id) in ionic_dev_tx_queue_stop_firsthalf() argument
109 struct ionic_tx_qcq *txq = dev->data->tx_queues[tx_queue_id]; in ionic_dev_tx_queue_stop_firsthalf()
111 IONIC_PRINT(DEBUG, "Stopping TX queue %u", tx_queue_id); in ionic_dev_tx_queue_stop_firsthalf()
113 dev->data->tx_queue_state[tx_queue_id] = RTE_ETH_QUEUE_STATE_STOPPED; in ionic_dev_tx_queue_stop_firsthalf()
120 uint16_t tx_queue_id) in ionic_dev_tx_queue_stop_secondhalf() argument
123 struct ionic_tx_qcq *txq = dev->data->tx_queues[tx_queue_id]; in ionic_dev_tx_queue_stop_secondhalf()
134 ionic_dev_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t tx_queue_id, in ionic_dev_tx_queue_setup() argument
143 if (tx_queue_id >= lif->ntxqcqs) { in ionic_dev_tx_queue_setup()
146 tx_queue_id, lif->ntxqcqs); in ionic_dev_tx_queue_setup()
153 socket_id, tx_queue_id, nb_desc, offloads); in ionic_dev_tx_queue_setup()
167 if (eth_dev->data->tx_queues[tx_queue_id] != NULL) { in ionic_dev_tx_queue_setup()
168 ionic_dev_tx_queue_release(eth_dev, tx_queue_id); in ionic_dev_tx_queue_setup()
169 eth_dev->data->tx_queues[tx_queue_id] = NULL; in ionic_dev_tx_queue_setup()
172 eth_dev->data->tx_queue_state[tx_queue_id] = in ionic_dev_tx_queue_setup()
175 err = ionic_tx_qcq_alloc(lif, socket_id, tx_queue_id, nb_desc, &txq); in ionic_dev_tx_queue_setup()
199 eth_dev->data->tx_queues[tx_queue_id] = txq; in ionic_dev_tx_queue_setup()
208 ionic_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id) in ionic_dev_tx_queue_start() argument
212 err = ionic_dev_tx_queue_start_firsthalf(dev, tx_queue_id); in ionic_dev_tx_queue_start()
216 return ionic_dev_tx_queue_start_secondhalf(dev, tx_queue_id); in ionic_dev_tx_queue_start()
221 uint16_t tx_queue_id) in ionic_dev_tx_queue_start_firsthalf() argument
224 struct ionic_tx_qcq *txq = dev->data->tx_queues[tx_queue_id]; in ionic_dev_tx_queue_start_firsthalf()
226 if (tx_queue_state[tx_queue_id] == RTE_ETH_QUEUE_STATE_STARTED) { in ionic_dev_tx_queue_start_firsthalf()
228 tx_queue_id); in ionic_dev_tx_queue_start_firsthalf()
233 tx_queue_id, txq->qcq.q.num_descs); in ionic_dev_tx_queue_start_firsthalf()
240 uint16_t tx_queue_id) in ionic_dev_tx_queue_start_secondhalf() argument
244 struct ionic_tx_qcq *txq = dev->data->tx_queues[tx_queue_id]; in ionic_dev_tx_queue_start_secondhalf()
247 if (tx_queue_state[tx_queue_id] == RTE_ETH_QUEUE_STATE_STARTED) in ionic_dev_tx_queue_start_secondhalf()
256 tx_queue_state[tx_queue_id] = RTE_ETH_QUEUE_STATE_STARTED; in ionic_dev_tx_queue_start_secondhalf()