FreeBSD/sys/netpfil/ipfw/dn_sched_fifo.c
/*
 * This file implements a FIFO scheduler for a single queue.
 * The queue is allocated as part of the scheduler instance,
 * and there is a single flowset is in the template which stores
 * queue size and policy.
 * Enqueue and dequeue use the default library functions.
 */
This file implements a FIFO scheduler for a single queue.
The queue is allocated as part of the scheduler instance,
and there is a single flowset is in the template which stores
queue size and policy.
Enqueue and dequeue use the default library functions.
This file implements a FIFO scheduler for a single queue . The queue is allocated as part of the scheduler instance and there is a single flowset is in the template which stores queue size and policy . Enqueue and dequeue use the default library functions .
static int 
fifo_enqueue(struct dn_sch_inst *si, struct dn_queue *q, struct mbuf *m)
{
	(void)q;
	return dn_enqueue((struct dn_queue *)(si+1), m, 0);
}
static int fifo_enqueue ( struct dn_sch_inst * si , struct dn_queue * q , struct mbuf * m ) { ( void ) q ; return dn_enqueue ( ( struct dn_queue * ) ( si + 1 ) , m , 0 ) ; }
This file implements a FIFO scheduler for a single queue.
This file implements a FIFO scheduler for a single queue .
/* XXX if called with q != NULL and m=NULL, this is a
	 * re-enqueue from an existing scheduler, which we should
	 * handle.
	 */