Skip to content

Commit

Permalink
[PKT_SCHED] SFQ: timer is deferrable
Browse files Browse the repository at this point in the history
The perturbation timer used for re-keying can be deferred, it doesn't
need to be deterministic.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 28, 2008
1 parent 51314a1 commit d3e9948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ static int sfq_init(struct Qdisc *sch, struct rtattr *opt)
struct sfq_sched_data *q = qdisc_priv(sch);
int i;

setup_timer(&q->perturb_timer, sfq_perturbation, (unsigned long)sch);
q->perturb_timer.function = sfq_perturbation;
q->perturb_timer.data = (unsigned long)sch;;
init_timer_deferrable(&q->perturb_timer);

for (i=0; i<SFQ_HASH_DIVISOR; i++)
q->ht[i] = SFQ_DEPTH;
Expand Down

0 comments on commit d3e9948

Please sign in to comment.