We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e82d7 commit 88c2aceCopy full SHA for 88c2ace
net/sched/sch_htb.c
@@ -1017,6 +1017,9 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)
1017
int err;
1018
int i;
1019
1020
+ qdisc_watchdog_init(&q->watchdog, sch);
1021
+ INIT_WORK(&q->work, htb_work_func);
1022
+
1023
if (!opt)
1024
return -EINVAL;
1025
@@ -1041,8 +1044,6 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)
1041
1044
for (i = 0; i < TC_HTB_NUMPRIO; i++)
1042
1045
INIT_LIST_HEAD(q->drops + i);
1043
1046
- qdisc_watchdog_init(&q->watchdog, sch);
- INIT_WORK(&q->work, htb_work_func);
1047
qdisc_skb_head_init(&q->direct_queue);
1048
1049
if (tb[TCA_HTB_DIRECT_QLEN])
0 commit comments