mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
[PKT_SCHED] SFQ: timer is deferrable
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>
This commit is contained in:
parent
51314a17ba
commit
d3e994830d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue