pkt_sched: fq: fix typo for initial_quantum
authorEric Dumazet <edumazet@google.com>
Mon, 7 Oct 2013 19:50:18 +0000 (12:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 20:32:41 +0000 (16:32 -0400)
TCA_FQ_INITIAL_QUANTUM should set q->initial_quantum

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c

index a2fef8b10b960c15d29556b7dc832737c848b3b6..48501a2baf75ed050a2c7da081d458c39f116f60 100644 (file)
@@ -656,7 +656,7 @@ static int fq_change(struct Qdisc *sch, struct nlattr *opt)
                q->quantum = nla_get_u32(tb[TCA_FQ_QUANTUM]);
 
        if (tb[TCA_FQ_INITIAL_QUANTUM])
-               q->quantum = nla_get_u32(tb[TCA_FQ_INITIAL_QUANTUM]);
+               q->initial_quantum = nla_get_u32(tb[TCA_FQ_INITIAL_QUANTUM]);
 
        if (tb[TCA_FQ_FLOW_DEFAULT_RATE])
                q->flow_default_rate = nla_get_u32(tb[TCA_FQ_FLOW_DEFAULT_RATE]);