| 633 | } |
| 634 | |
| 635 | static void |
| 636 | ice_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 | |
| 667 | static int |
| 668 | ice_dcf_dev_stop(struct rte_eth_dev *dev) |
no test coverage detected