ionic_queue_length
cq->credit += ionic_queue_length(&cq->q);
return q->mask == ionic_queue_length(q);
return q->mask - ionic_queue_length(q);