search for: ooo_init

Displaying 1 result from an estimated 1 matches for "ooo_init".

2004 Jun 22
3
[ANNOUNCE] sch_ooo - Out-of-order packet queue discipline
...ruct Qdisc *sch = (struct Qdisc *)arg; + struct ooo_sched_data *q = (struct ooo_sched_data *)sch->data; + + DPRINTK("timer: Add a token and sched dev!\n"); + + /* add a token */ + q->tokens++; + + sch->flags &= ~TCQ_F_THROTTLED; + netif_schedule(sch->dev); +} + +static int ooo_init(struct Qdisc *sch, struct rtattr *opt) +{ + struct ooo_sched_data *q = (struct ooo_sched_data *)sch->data; + + memset (q, 0, sizeof(struct ooo_sched_data)); + + sch->stats.lock = &sch->dev->queue_lock; + + /* init timer */ + init_timer(&q->timer); + q->timer.function = ooo...