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

Function ionic_rx_rearm_data

dpdk/drivers/net/ionic/ionic_lif.c:714–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714static uint64_t
715ionic_rx_rearm_data(struct ionic_lif *lif)
716{
717 struct rte_mbuf rxm;
718
719 memset(&rxm, 0, sizeof(rxm));
720
721 rte_mbuf_refcnt_set(&rxm, 1);
722 rxm.data_off = RTE_PKTMBUF_HEADROOM;
723 rxm.nb_segs = 1;
724 rxm.port = lif->port_id;
725
726 rte_compiler_barrier();
727
728 RTE_BUILD_BUG_ON(sizeof(rxm.rearm_data[0]) != sizeof(uint64_t));
729 return rxm.rearm_data[0];
730}
731
732static uint64_t
733ionic_rx_seg_rearm_data(struct ionic_lif *lif)

Callers 1

ionic_rx_qcq_allocFunction · 0.85

Calls 2

memsetFunction · 0.85
rte_mbuf_refcnt_setFunction · 0.85

Tested by

no test coverage detected