Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279413
b: refs/heads/master
c: 02a9098
h: refs/heads/master
i:
  279411: 954bb89
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 4, 2012
1 parent 1a362d4 commit 01e2243
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd16a6cce2a7f169b559abc5672fd2c66e91fb36
refs/heads/master: 02a9098ede0dc7e28c16a03fa7fba86a05219478
12 changes: 6 additions & 6 deletions trunk/net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,12 @@ static int sfq_init(struct Qdisc *sch, struct nlattr *opt)
q->cur_depth = 0;
q->tail = NULL;
q->divisor = SFQ_DEFAULT_HASH_DIVISOR;
if (opt == NULL) {
q->quantum = psched_mtu(qdisc_dev(sch));
q->scaled_quantum = SFQ_ALLOT_SIZE(q->quantum);
q->perturb_period = 0;
q->perturbation = net_random();
} else {
q->quantum = psched_mtu(qdisc_dev(sch));
q->scaled_quantum = SFQ_ALLOT_SIZE(q->quantum);
q->perturb_period = 0;
q->perturbation = net_random();

if (opt) {
int err = sfq_change(sch, opt);
if (err)
return err;
Expand Down

0 comments on commit 01e2243

Please sign in to comment.