mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-16 19:29:06 +08: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:
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 {
|
||||
|
||||
@@ -124,6 +124,7 @@ struct tcf_t {
|
||||
__u64 install;
|
||||
__u64 lastuse;
|
||||
__u64 expires;
|
||||
__u64 firstuse;
|
||||
};
|
||||
|
||||
struct tc_cnt {
|
||||
|
||||
Reference in New Issue
Block a user