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

Function sfc_tx_queue_release

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

Source from the content-addressed store, hash-verified

574}
575
576static void
577sfc_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid)
578{
579 struct sfc_dp_txq *dp_txq = dev->data->tx_queues[qid];
580 struct sfc_txq *txq;
581 sfc_sw_index_t sw_index;
582 struct sfc_adapter *sa;
583
584 if (dp_txq == NULL)
585 return;
586
587 txq = sfc_txq_by_dp_txq(dp_txq);
588 sw_index = dp_txq->dpq.queue_id;
589
590 SFC_ASSERT(txq->evq != NULL);
591 sa = txq->evq->sa;
592
593 sfc_log_init(sa, "TxQ = %u", sw_index);
594
595 sfc_adapter_lock(sa);
596
597 sfc_tx_qfini(sa, sw_index);
598
599 sfc_adapter_unlock(sa);
600}
601
602static void
603sfc_stats_get_dp_rx(struct sfc_adapter *sa, uint64_t *pkts, uint64_t *bytes)

Callers

nothing calls this directly

Calls 2

sfc_txq_by_dp_txqFunction · 0.85
sfc_tx_qfiniFunction · 0.85

Tested by

no test coverage detected