| 47 | } |
| 48 | |
| 49 | static void __rte_cold |
| 50 | ionic_rx_empty(struct ionic_rx_qcq *rxq) |
| 51 | { |
| 52 | struct ionic_queue *q = &rxq->qcq.q; |
| 53 | uint32_t info_len = q->num_descs * q->num_segs; |
| 54 | |
| 55 | /* |
| 56 | * Walk the full info array so that the clean up includes any |
| 57 | * fragments that were left dangling for later reuse |
| 58 | */ |
| 59 | ionic_empty_array(q->info, info_len, info_len); |
| 60 | |
| 61 | ionic_empty_array((void **)rxq->mbs, rxq->mb_idx, |
| 62 | IONIC_MBUF_BULK_ALLOC); |
| 63 | rxq->mb_idx = 0; |
| 64 | } |
| 65 | |
| 66 | /********************************************************************* |
| 67 | * |
no test coverage detected