sched: align nlattr properly when needed
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

父節點
b676338fb3
當前提交
9854518ea0
@@ -163,7 +163,8 @@ static inline int tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a,
|
||||
t.install = jiffies_to_clock_t(jiffies - ci->tcf_tm.install);
|
||||
t.lastuse = jiffies_to_clock_t(jiffies - ci->tcf_tm.lastuse);
|
||||
t.expires = jiffies_to_clock_t(ci->tcf_tm.expires);
|
||||
if (nla_put(skb, TCA_CONNMARK_TM, sizeof(t), &t))
|
||||
if (nla_put_64bit(skb, TCA_CONNMARK_TM, sizeof(t), &t,
|
||||
TCA_CONNMARK_PAD))
|
||||
goto nla_put_failure;
|
||||
|
||||
return skb->len;
|
||||
|
Reference in New Issue
Block a user