aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/sch_sfq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c
index ba3a85e29b21..4179758450f5 100644
--- a/net/sched/sch_sfq.c
+++ b/net/sched/sch_sfq.c
@@ -386,7 +386,7 @@ static void sfq_perturbation(unsigned long arg)
386 struct Qdisc *sch = (struct Qdisc*)arg; 386 struct Qdisc *sch = (struct Qdisc*)arg;
387 struct sfq_sched_data *q = qdisc_priv(sch); 387 struct sfq_sched_data *q = qdisc_priv(sch);
388 388
389 get_random_bytes(&q->perturbation, 4); 389 q->perturbation = net_random();
390 390
391 if (q->perturb_period) 391 if (q->perturb_period)
392 mod_timer(&q->perturb_timer, jiffies + q->perturb_period); 392 mod_timer(&q->perturb_timer, jiffies + q->perturb_period);
@@ -415,7 +415,7 @@ static int sfq_change(struct Qdisc *sch, struct rtattr *opt)
415 del_timer(&q->perturb_timer); 415 del_timer(&q->perturb_timer);
416 if (q->perturb_period) { 416 if (q->perturb_period) {
417 mod_timer(&q->perturb_timer, jiffies + q->perturb_period); 417 mod_timer(&q->perturb_timer, jiffies + q->perturb_period);
418 get_random_bytes(&q->perturbation, 4); 418 q->perturbation = net_random();
419 } 419 }
420 sch_tree_unlock(sch); 420 sch_tree_unlock(sch);
421 return 0; 421 return 0;
@@ -443,7 +443,7 @@ static int sfq_init(struct Qdisc *sch, struct rtattr *opt)
443 if (opt == NULL) { 443 if (opt == NULL) {
444 q->quantum = psched_mtu(sch->dev); 444 q->quantum = psched_mtu(sch->dev);
445 q->perturb_period = 0; 445 q->perturb_period = 0;
446 get_random_bytes(&q->perturbation, 4); 446 q->perturbation = net_random();
447 } else { 447 } else {
448 int err = sfq_change(sch, opt); 448 int err = sfq_change(sch, opt);
449 if (err) 449 if (err)