|
@@ -933,11 +933,11 @@ static int netem_init(struct Qdisc *sch, struct nlattr *opt)
|
|
struct netem_sched_data *q = qdisc_priv(sch);
|
|
struct netem_sched_data *q = qdisc_priv(sch);
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ qdisc_watchdog_init(&q->watchdog, sch);
|
|
|
|
+
|
|
if (!opt)
|
|
if (!opt)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- qdisc_watchdog_init(&q->watchdog, sch);
|
|
|
|
-
|
|
|
|
q->loss_model = CLG_RANDOM;
|
|
q->loss_model = CLG_RANDOM;
|
|
ret = netem_change(sch, opt);
|
|
ret = netem_change(sch, opt);
|
|
if (ret)
|
|
if (ret)
|