aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_tbf.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-06-05 18:56:43 -0400
committerDavid S. Miller <davem@davemloft.net>2013-06-05 19:37:30 -0400
commit6bc19fb82d4c05a9eee19d6d2aab2ce26e499ec2 (patch)
tree8b049ef383307f5dae91b5c9cf78dbfb9b74a4d1 /net/sched/sch_tbf.c
parent11a164a04382d735230b01f4cc46ad78a7c4abf6 (diff)
parent4d3797d7e1861ac1af150a6189315786c5e1c820 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge 'net' bug fixes into 'net-next' as we have patches that will build on top of them. This merge commit includes a change from Emil Goode (emilgoode@gmail.com) that fixes a warning that would have been introduced by this merge. Specifically it fixes the pingv6_ops method ipv6_chk_addr() to add a "const" to the "struct net_device *dev" argument and likewise update the dummy_ipv6_chk_addr() declaration. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_tbf.c')
-rw-r--r--net/sched/sch_tbf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
index 38008b0980d9..1aaf1b6e51a2 100644
--- a/net/sched/sch_tbf.c
+++ b/net/sched/sch_tbf.c
@@ -341,9 +341,9 @@ static int tbf_change(struct Qdisc *sch, struct nlattr *opt)
341 q->tokens = q->buffer; 341 q->tokens = q->buffer;
342 q->ptokens = q->mtu; 342 q->ptokens = q->mtu;
343 343
344 psched_ratecfg_precompute(&q->rate, rtab->rate.rate); 344 psched_ratecfg_precompute(&q->rate, &rtab->rate);
345 if (ptab) { 345 if (ptab) {
346 psched_ratecfg_precompute(&q->peak, ptab->rate.rate); 346 psched_ratecfg_precompute(&q->peak, &ptab->rate);
347 q->peak_present = true; 347 q->peak_present = true;
348 } else { 348 } else {
349 q->peak_present = false; 349 q->peak_present = false;
@@ -393,9 +393,9 @@ static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb)
393 goto nla_put_failure; 393 goto nla_put_failure;
394 394
395 opt.limit = q->limit; 395 opt.limit = q->limit;
396 opt.rate.rate = psched_ratecfg_getrate(&q->rate); 396 psched_ratecfg_getrate(&opt.rate, &q->rate);
397 if (q->peak_present) 397 if (q->peak_present)
398 opt.peakrate.rate = psched_ratecfg_getrate(&q->peak); 398 psched_ratecfg_getrate(&opt.peakrate, &q->peak);
399 else 399 else
400 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); 400 memset(&opt.peakrate, 0, sizeof(opt.peakrate));
401 opt.mtu = PSCHED_NS2TICKS(q->mtu); 401 opt.mtu = PSCHED_NS2TICKS(q->mtu);