FreeBSD/sys/netpfil/ipfw/dn_sched_fq_codel.c
/* Drop a packet form the head of codel queue */
Drop a packet form the head of codel queue
Drop a packet form the head of codel queue
static void
codel_drop_head(struct fq_codel_flow *q, struct fq_codel_si *si)
{
	struct mbuf *m = q->mq.head;
	if (m == NULL)
		return;
	q->mq.head = m->m_nextpkt;
	fq_update_stats(q, si, -m->m_pkthdr.len, 1);
	if (si->main_q.ni.length == 0) 
			si->main_q.q_time = dn_cfg.curr_time;
	FREE_PKT(m);
}
static void codel_drop_head ( struct fq_codel_flow * q , struct fq_codel_si * si ) { struct mbuf * m = q -> mq . head ; if ( m == NULL ) return ; q -> mq . head = m -> m_nextpkt ; fq_update_stats ( q , si , - m -> m_pkthdr . len , 1 ) ; if ( si -> main_q . ni . length == 0 ) si -> main_q . q_time = dn_cfg . curr_time ; FREE_PKT ( m ) ; }
Drop a packet form the head of codel queue
Drop a packet form the head of codel queue
/* queue is now idle */