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

Function ionic_rx_fill

dpdk/drivers/net/ionic/ionic_rxtx_simple.c:449–467  ·  view source on GitHub ↗

* Fills all descriptors with mbufs. */

Source from the content-addressed store, hash-verified

447 * Fills all descriptors with mbufs.
448 */
449int __rte_cold
450ionic_rx_fill(struct ionic_rx_qcq *rxq)
451{
452 struct ionic_queue *q = &rxq->qcq.q;
453 uint32_t i;
454 int err = 0;
455
456 for (i = 0; i < q->num_descs - 1u; i++) {
457 err = ionic_rx_fill_one(rxq);
458 if (err)
459 break;
460
461 q->head_idx = Q_NEXT_TO_POST(q, 1);
462 }
463
464 ionic_q_flush(q);
465
466 return err;
467}

Callers 1

ionic_dev_rx_queue_startFunction · 0.85

Calls 2

ionic_rx_fill_oneFunction · 0.85
ionic_q_flushFunction · 0.85

Tested by

no test coverage detected