diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2016-04-25 10:25:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-25 15:09:09 -0400 |
commit | 2a51c1e8ecdcedfcb6f84efb3756822d0d0dfb36 (patch) | |
tree | d0ed05e907d03e82b6bfd95ee6a52127198292d6 /net/sched/sch_tbf.c | |
parent | 343a6d8e4955f298206d83ae764acf60d146b898 (diff) | |
download | op-kernel-dev-2a51c1e8ecdcedfcb6f84efb3756822d0d0dfb36.zip op-kernel-dev-2a51c1e8ecdcedfcb6f84efb3756822d0d0dfb36.tar.gz |
sched: use nla_put_u64_64bit()
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_tbf.c')
-rw-r--r-- | net/sched/sch_tbf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c index c2fbde7..83b90b5 100644 --- a/net/sched/sch_tbf.c +++ b/net/sched/sch_tbf.c @@ -472,11 +472,13 @@ static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb) if (nla_put(skb, TCA_TBF_PARMS, sizeof(opt), &opt)) goto nla_put_failure; if (q->rate.rate_bytes_ps >= (1ULL << 32) && - nla_put_u64(skb, TCA_TBF_RATE64, q->rate.rate_bytes_ps)) + nla_put_u64_64bit(skb, TCA_TBF_RATE64, q->rate.rate_bytes_ps, + TCA_TBF_PAD)) goto nla_put_failure; if (tbf_peak_present(q) && q->peak.rate_bytes_ps >= (1ULL << 32) && - nla_put_u64(skb, TCA_TBF_PRATE64, q->peak.rate_bytes_ps)) + nla_put_u64_64bit(skb, TCA_TBF_PRATE64, q->peak.rate_bytes_ps, + TCA_TBF_PAD)) goto nla_put_failure; return nla_nest_end(skb, nest); |