FreeBSD/sys/netpfil/ipfw/dn_sched_rr.c
/* Append a queue to the rr list */
Append a queue to the rr list
Append a queue to the rr list
static inline void
rr_append(struct rr_queue *q, struct rr_si *si)
{
	q->status = 1;		
	q->credit = q->quantum;	
	if (si->head == NULL)
		si->head = q;
	else
		si->tail->qnext = q;
	si->tail = q;		
	q->qnext = si->head;	
}
static inline void rr_append ( struct rr_queue * q , struct rr_si * si ) { q -> status = 1 ; q -> credit = q -> quantum ; if ( si -> head == NULL ) si -> head = q ; else si -> tail -> qnext = q ; si -> tail = q ; q -> qnext = si -> head ; }
Append a queue to the rr list
Append a queue to the rr list
/* mark as in-rr_list */ /* initialize credit */ /* append to the tail */ /* advance the tail pointer */ /* make it circular */