GET_Q_NEXT
ring->cidx = GET_Q_NEXT(ring->cidx, n, ring->num_items)
ring->pidx = GET_Q_NEXT(ring->pidx, n, ring->num_items)