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
@@ -76,6 +76,8 @@ static inline void tcf_lastuse_update(struct tcf_t *tm)
|
||||
|
||||
if (tm->lastuse != now)
|
||||
tm->lastuse = now;
|
||||
if (unlikely(!tm->firstuse))
|
||||
tm->firstuse = now;
|
||||
}
|
||||
|
||||
struct tc_action {
|
||||
|
||||
Reference in New Issue
Block a user