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

Function bnxt_tx_queue_release_mbufs

dpdk/drivers/net/bnxt/bnxt_txq.c:55–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static void bnxt_tx_queue_release_mbufs(struct bnxt_tx_queue *txq)
56{
57 struct rte_mbuf **sw_ring;
58 uint16_t i;
59
60 if (!txq || !txq->tx_ring)
61 return;
62
63 sw_ring = txq->tx_ring->tx_buf_ring;
64 if (sw_ring) {
65 for (i = 0; i < txq->tx_ring->tx_ring_struct->ring_size; i++) {
66 if (sw_ring[i]) {
67 rte_pktmbuf_free_seg(sw_ring[i]);
68 sw_ring[i] = NULL;
69 }
70 }
71 }
72}
73
74void bnxt_free_tx_mbufs(struct bnxt *bp)
75{

Callers 2

bnxt_free_tx_mbufsFunction · 0.85
bnxt_tx_queue_release_opFunction · 0.85

Calls 1

rte_pktmbuf_free_segFunction · 0.85

Tested by

no test coverage detected