mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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:
parent
9c4a4e488b
commit
53eb440f4a
15 changed files with 17 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue