| 270 | } |
| 271 | |
| 272 | static void |
| 273 | ntb_rxq_release_mbufs(struct ntb_rx_queue *q) |
| 274 | { |
| 275 | int i; |
| 276 | |
| 277 | if (!q || !q->sw_ring) { |
| 278 | NTB_LOG(ERR, "Pointer to rxq or sw_ring is NULL"); |
| 279 | return; |
| 280 | } |
| 281 | |
| 282 | for (i = 0; i < q->nb_rx_desc; i++) { |
| 283 | if (q->sw_ring[i].mbuf) { |
| 284 | rte_pktmbuf_free_seg(q->sw_ring[i].mbuf); |
| 285 | q->sw_ring[i].mbuf = NULL; |
| 286 | } |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | static void |
| 291 | ntb_rxq_release(struct ntb_rx_queue *rxq) |
no test coverage detected