|
@@ -1017,6 +1017,9 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)
|
|
|
int err;
|
|
int err;
|
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
|
|
+ qdisc_watchdog_init(&q->watchdog, sch);
|
|
|
|
|
+ INIT_WORK(&q->work, htb_work_func);
|
|
|
|
|
+
|
|
|
if (!opt)
|
|
if (!opt)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
@@ -1041,8 +1044,6 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)
|
|
|
for (i = 0; i < TC_HTB_NUMPRIO; i++)
|
|
for (i = 0; i < TC_HTB_NUMPRIO; i++)
|
|
|
INIT_LIST_HEAD(q->drops + i);
|
|
INIT_LIST_HEAD(q->drops + i);
|
|
|
|
|
|
|
|
- qdisc_watchdog_init(&q->watchdog, sch);
|
|
|
|
|
- INIT_WORK(&q->work, htb_work_func);
|
|
|
|
|
qdisc_skb_head_init(&q->direct_queue);
|
|
qdisc_skb_head_init(&q->direct_queue);
|
|
|
|
|
|
|
|
if (tb[TCA_HTB_DIRECT_QLEN])
|
|
if (tb[TCA_HTB_DIRECT_QLEN])
|