* Stop Receive Units for specified queue. */
| 725 | * Stop Receive Units for specified queue. |
| 726 | */ |
| 727 | int __rte_cold |
| 728 | ionic_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 | |
| 752 | int |
| 753 | ionic_dev_rx_descriptor_status(void *rx_queue, uint16_t offset) |
no test coverage detected