diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_sfq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 16feb88503af..843018154a5c 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c | |||
@@ -591,12 +591,12 @@ static int sfq_init(struct Qdisc *sch, struct nlattr *opt) | |||
591 | q->cur_depth = 0; | 591 | q->cur_depth = 0; |
592 | q->tail = NULL; | 592 | q->tail = NULL; |
593 | q->divisor = SFQ_DEFAULT_HASH_DIVISOR; | 593 | q->divisor = SFQ_DEFAULT_HASH_DIVISOR; |
594 | if (opt == NULL) { | 594 | q->quantum = psched_mtu(qdisc_dev(sch)); |
595 | q->quantum = psched_mtu(qdisc_dev(sch)); | 595 | q->scaled_quantum = SFQ_ALLOT_SIZE(q->quantum); |
596 | q->scaled_quantum = SFQ_ALLOT_SIZE(q->quantum); | 596 | q->perturb_period = 0; |
597 | q->perturb_period = 0; | 597 | q->perturbation = net_random(); |
598 | q->perturbation = net_random(); | 598 | |
599 | } else { | 599 | if (opt) { |
600 | int err = sfq_change(sch, opt); | 600 | int err = sfq_change(sch, opt); |
601 | if (err) | 601 | if (err) |
602 | return err; | 602 | return err; |