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

Function ngbe_dev_clear_queues

dpdk/drivers/net/ngbe/ngbe_rxtx.c:2426–2453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2424}
2425
2426void
2427ngbe_dev_clear_queues(struct rte_eth_dev *dev)
2428{
2429 unsigned int i;
2430 struct ngbe_adapter *adapter = ngbe_dev_adapter(dev);
2431
2432 PMD_INIT_FUNC_TRACE();
2433
2434 for (i = 0; i < dev->data->nb_tx_queues; i++) {
2435 struct ngbe_tx_queue *txq = dev->data->tx_queues[i];
2436
2437 if (txq != NULL) {
2438 txq->ops->release_mbufs(txq);
2439 txq->ops->reset(txq);
2440 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
2441 }
2442 }
2443
2444 for (i = 0; i < dev->data->nb_rx_queues; i++) {
2445 struct ngbe_rx_queue *rxq = dev->data->rx_queues[i];
2446
2447 if (rxq != NULL) {
2448 ngbe_rx_queue_release_mbufs(rxq);
2449 ngbe_reset_rx_queue(adapter, rxq);
2450 dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;
2451 }
2452 }
2453}
2454
2455void
2456ngbe_dev_free_queues(struct rte_eth_dev *dev)

Callers 2

ngbe_dev_startFunction · 0.85
ngbe_dev_stopFunction · 0.85

Calls 4

ngbe_dev_adapterFunction · 0.85
ngbe_reset_rx_queueFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected