/* A packet has just been enqueued on the empty class. cbq_activate_class adds it to the tail of active class list of its priority band.  */
static __inline__ void cbq_activate_class(struct cbq_class *cl)
/* A packet has just been enqueued on the empty class. cbq_activate_class adds it to the tail of active class list of its priority band.  */
static __inline__ void cbq_activate_class(struct cbq_class *cl)
{
	struct cbq_sched_data *q = qdisc_priv(cl->qdisc);
	int prio = cl->cpriority;
	struct cbq_class *cl_tail;
	cl_tail = q->active[prio];
	q->active[prio] = cl;
	if (cl_tail != NULL) {
		cl->next_alive = cl_tail->next_alive;
		cl_tail->next_alive = cl;
	} else {
		cl->next_alive = cl;
		q->activemask |= (1<<prio);
	}
}