Re: [RFC] sched: CHOKe packet scheduler (v0.4)

Eric Dumazet
2011-01-11T06:18:40Z

Le lundi 10 janvier 2011 à 17:10 -0800, Stephen Hemminger a écrit :
> OK, put that in.

Thanks !

> >
> > Here we missed :
> >
> > q->tab = ntab;
> >

We also need to change

.peek = qdisc_peek_head,

to

.peek = choke_peek_head,

static struct sk_buff *choke_peek_head(struct Qdisc *sch)
{
struct choke_sched_data *q = qdisc_priv(sch);

return (q->head != q->tail) ? q->tab[q->head] : NULL;
}