net sched actions: introduce timestamp for firsttime use
Useful to know when the action was first used for accounting (and debugging) Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
9c4a4e488b
commit
53eb440f4a
@@ -548,6 +548,7 @@ static int tcf_csum_dump(struct sk_buff *skb,
|
||||
goto nla_put_failure;
|
||||
t.install = jiffies_to_clock_t(jiffies - p->tcf_tm.install);
|
||||
t.lastuse = jiffies_to_clock_t(jiffies - p->tcf_tm.lastuse);
|
||||
t.firstuse = jiffies_to_clock_t(jiffies - p->tcf_tm.firstuse);
|
||||
t.expires = jiffies_to_clock_t(p->tcf_tm.expires);
|
||||
if (nla_put_64bit(skb, TCA_CSUM_TM, sizeof(t), &t, TCA_CSUM_PAD))
|
||||
goto nla_put_failure;
|
||||
|
Reference in New Issue
Block a user