| 106 | } |
| 107 | |
| 108 | static int |
| 109 | common_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 | |
| 121 | static int |
| 122 | rts_ring_alloc(struct rte_mempool *mp) |
nothing calls this directly
no test coverage detected