| 1257 | */ |
| 1258 | |
| 1259 | static void |
| 1260 | igb_tx_queue_release_mbufs(struct igb_tx_queue *txq) |
| 1261 | { |
| 1262 | unsigned i; |
| 1263 | |
| 1264 | if (txq->sw_ring != NULL) { |
| 1265 | for (i = 0; i < txq->nb_tx_desc; i++) { |
| 1266 | if (txq->sw_ring[i].mbuf != NULL) { |
| 1267 | rte_pktmbuf_free_seg(txq->sw_ring[i].mbuf); |
| 1268 | txq->sw_ring[i].mbuf = NULL; |
| 1269 | } |
| 1270 | } |
| 1271 | } |
| 1272 | } |
| 1273 | |
| 1274 | static void |
| 1275 | igb_tx_queue_release(struct igb_tx_queue *txq) |
no test coverage detected