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

Function ionic_rx_seg_rearm_data

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

Source from the content-addressed store, hash-verified

730}
731
732static uint64_t
733ionic_rx_seg_rearm_data(struct ionic_lif *lif)
734{
735 struct rte_mbuf rxm;
736
737 memset(&rxm, 0, sizeof(rxm));
738
739 rte_mbuf_refcnt_set(&rxm, 1);
740 rxm.data_off = 0; /* no headroom */
741 rxm.nb_segs = 1;
742 rxm.port = lif->port_id;
743
744 rte_compiler_barrier();
745
746 RTE_BUILD_BUG_ON(sizeof(rxm.rearm_data[0]) != sizeof(uint64_t));
747 return rxm.rearm_data[0];
748}
749
750int
751ionic_rx_qcq_alloc(struct ionic_lif *lif, uint32_t socket_id, uint32_t index,

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