summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_netem.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2016-04-25 10:25:15 +0200
committerDavid S. Miller <davem@davemloft.net>2016-04-25 15:09:09 -0400
commit2a51c1e8ecdcedfcb6f84efb3756822d0d0dfb36 (patch)
treed0ed05e907d03e82b6bfd95ee6a52127198292d6 /net/sched/sch_netem.c
parent343a6d8e4955f298206d83ae764acf60d146b898 (diff)
downloadtalos-obmc-linux-2a51c1e8ecdcedfcb6f84efb3756822d0d0dfb36.tar.gz
talos-obmc-linux-2a51c1e8ecdcedfcb6f84efb3756822d0d0dfb36.zip
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_netem.c')
-rw-r--r--net/sched/sch_netem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index 9640bb39a5d2..491d6fd6430c 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -994,7 +994,8 @@ static int netem_dump(struct Qdisc *sch, struct sk_buff *skb)
goto nla_put_failure;
if (q->rate >= (1ULL << 32)) {
- if (nla_put_u64(skb, TCA_NETEM_RATE64, q->rate))
+ if (nla_put_u64_64bit(skb, TCA_NETEM_RATE64, q->rate,
+ TCA_NETEM_PAD))
goto nla_put_failure;
rate.rate = ~0U;
} else {
OpenPOWER on IntegriCloud