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

Function sfc_rx_queue_stop

dpdk/drivers/net/sfc/sfc_ethdev.c:1448–1470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446}
1447
1448static int
1449sfc_rx_queue_stop(struct rte_eth_dev *dev, uint16_t ethdev_qid)
1450{
1451 struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
1452 struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev);
1453 sfc_ethdev_qid_t sfc_ethdev_qid = ethdev_qid;
1454 struct sfc_rxq_info *rxq_info;
1455 sfc_sw_index_t sw_index;
1456
1457 sfc_log_init(sa, "RxQ=%u", ethdev_qid);
1458
1459 sfc_adapter_lock(sa);
1460
1461 sw_index = sfc_rxq_sw_index_by_ethdev_rx_qid(sas, sfc_ethdev_qid);
1462 sfc_rx_qstop(sa, sw_index);
1463
1464 rxq_info = sfc_rxq_info_by_ethdev_qid(sas, sfc_ethdev_qid);
1465 rxq_info->deferred_started = B_FALSE;
1466
1467 sfc_adapter_unlock(sa);
1468
1469 return 0;
1470}
1471
1472static int
1473sfc_tx_queue_start(struct rte_eth_dev *dev, uint16_t ethdev_qid)

Callers

nothing calls this directly

Calls 5

sfc_adapter_by_eth_devFunction · 0.85
sfc_rx_qstopFunction · 0.85

Tested by

no test coverage detected