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

Function ionic_rx_fill_sg

dpdk/drivers/net/ionic/ionic_rxtx_sg.c:528–546  ·  view source on GitHub ↗

* Fills all descriptors with mbufs. */

Source from the content-addressed store, hash-verified

526 * Fills all descriptors with mbufs.
527 */
528int __rte_cold
529ionic_rx_fill_sg(struct ionic_rx_qcq *rxq)
530{
531 struct ionic_queue *q = &rxq->qcq.q;
532 uint32_t i;
533 int err = 0;
534
535 for (i = 0; i < q->num_descs - 1u; i++) {
536 err = ionic_rx_fill_one_sg(rxq);
537 if (err)
538 break;
539
540 q->head_idx = Q_NEXT_TO_POST(q, 1);
541 }
542
543 ionic_q_flush(q);
544
545 return err;
546}

Callers 1

ionic_dev_rx_queue_startFunction · 0.85

Calls 2

ionic_rx_fill_one_sgFunction · 0.85
ionic_q_flushFunction · 0.85

Tested by

no test coverage detected