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

Function common_ring_alloc

dpdk/drivers/mempool/ring/rte_mempool_ring.c:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static int
109common_ring_alloc(struct rte_mempool *mp)
110{
111 uint32_t rg_flags = 0;
112
113 if (mp->flags & RTE_MEMPOOL_F_SP_PUT)
114 rg_flags |= RING_F_SP_ENQ;
115 if (mp->flags & RTE_MEMPOOL_F_SC_GET)
116 rg_flags |= RING_F_SC_DEQ;
117
118 return ring_alloc(mp, rg_flags);
119}
120
121static int
122rts_ring_alloc(struct rte_mempool *mp)

Callers

nothing calls this directly

Calls 1

ring_allocFunction · 0.85

Tested by

no test coverage detected