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

Function ena_queue_stop_all

dpdk/drivers/net/ena/ena_ethdev.c:1407–1425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407static void ena_queue_stop_all(struct rte_eth_dev *dev,
1408 enum ena_ring_type ring_type)
1409{
1410 struct ena_adapter *adapter = dev->data->dev_private;
1411 struct ena_ring *queues = NULL;
1412 uint16_t nb_queues, i;
1413
1414 if (ring_type == ENA_RING_TYPE_RX) {
1415 queues = adapter->rx_ring;
1416 nb_queues = dev->data->nb_rx_queues;
1417 } else {
1418 queues = adapter->tx_ring;
1419 nb_queues = dev->data->nb_tx_queues;
1420 }
1421
1422 for (i = 0; i < nb_queues; ++i)
1423 if (queues[i].configured)
1424 ena_queue_stop(&queues[i]);
1425}
1426
1427static int ena_queue_start(struct rte_eth_dev *dev, struct ena_ring *ring)
1428{

Callers 2

ena_startFunction · 0.85
ena_stopFunction · 0.85

Calls 1

ena_queue_stopFunction · 0.85

Tested by

no test coverage detected