MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ionic_dev_rx_queue_stop

Function ionic_dev_rx_queue_stop

dpdk/drivers/net/ionic/ionic_rxtx.c:727–750  ·  view source on GitHub ↗

* Stop Receive Units for specified queue. */

Source from the content-addressed store, hash-verified

725 * Stop Receive Units for specified queue.
726 */
727int __rte_cold
728ionic_dev_rx_queue_stop(struct rte_eth_dev *eth_dev, uint16_t rx_queue_id)
729{
730 uint8_t *rx_queue_state = eth_dev->data->rx_queue_state;
731 struct ionic_rx_stats *stats;
732 struct ionic_rx_qcq *rxq;
733
734 IONIC_PRINT(DEBUG, "Stopping RX queue %u", rx_queue_id);
735
736 rxq = eth_dev->data->rx_queues[rx_queue_id];
737
738 rx_queue_state[rx_queue_id] = RTE_ETH_QUEUE_STATE_STOPPED;
739
740 ionic_lif_rxq_deinit(rxq);
741
742 /* Free all buffers from descriptor ring */
743 ionic_rx_empty(rxq);
744
745 stats = &rxq->stats;
746 IONIC_PRINT(DEBUG, "RX queue %u pkts %ju mtod %ju",
747 rxq->qcq.q.index, stats->packets, stats->mtods);
748
749 return 0;
750}
751
752int
753ionic_dev_rx_descriptor_status(void *rx_queue, uint16_t offset)

Callers 1

ionic_lif_stopFunction · 0.85

Calls 2

ionic_lif_rxq_deinitFunction · 0.85
ionic_rx_emptyFunction · 0.85

Tested by

no test coverage detected