| 53 | } |
| 54 | |
| 55 | static 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 | |
| 74 | void bnxt_free_tx_mbufs(struct bnxt *bp) |
| 75 | { |
no test coverage detected