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

Function ionic_rx_empty

dpdk/drivers/net/ionic/ionic_rxtx.c:49–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static void __rte_cold
50ionic_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 *

Callers 1

ionic_dev_rx_queue_stopFunction · 0.85

Calls 1

ionic_empty_arrayFunction · 0.85

Tested by

no test coverage detected