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

Function ice_dcf_stop_queues

dpdk/drivers/net/ice/ice_dcf_ethdev.c:635–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635static void
636ice_dcf_stop_queues(struct rte_eth_dev *dev)
637{
638 struct ice_dcf_adapter *ad = dev->data->dev_private;
639 struct ice_dcf_hw *hw = &ad->real_hw;
640 struct ice_rx_queue *rxq;
641 struct ice_tx_queue *txq;
642 int ret, i;
643
644 /* Stop All queues */
645 ret = ice_dcf_disable_queues(hw);
646 if (ret)
647 PMD_DRV_LOG(WARNING, "Fail to stop queues");
648
649 for (i = 0; i < dev->data->nb_tx_queues; i++) {
650 txq = dev->data->tx_queues[i];
651 if (!txq)
652 continue;
653 txq->tx_rel_mbufs(txq);
654 reset_tx_queue(txq);
655 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
656 }
657 for (i = 0; i < dev->data->nb_rx_queues; i++) {
658 rxq = dev->data->rx_queues[i];
659 if (!rxq)
660 continue;
661 rxq->rx_rel_mbufs(rxq);
662 reset_rx_queue(rxq);
663 dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
664 }
665}
666
667static int
668ice_dcf_dev_stop(struct rte_eth_dev *dev)

Callers 1

ice_dcf_dev_stopFunction · 0.85

Calls 3

ice_dcf_disable_queuesFunction · 0.85
reset_tx_queueFunction · 0.70
reset_rx_queueFunction · 0.70

Tested by

no test coverage detected