tc: report time an action was first used

Have print_tm() dump firstuse value along with install, lastuse
and expires.

v2: Resubmit after 'master' merged into next

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
Roman Mashak 2020-05-27 21:22:47 -04:00 committed by David Ahern
parent e50290e687
commit bd4b8c632e
1 changed files with 4 additions and 0 deletions

View File

@ -758,6 +758,10 @@ void print_tm(FILE *f, const struct tcf_t *tm)
print_uint(PRINT_ANY, "last_used", " used %u sec",
tm->lastuse / hz);
if (tm->firstuse != 0)
print_uint(PRINT_ANY, "first_used", " firstused %u sec",
tm->firstuse / hz);
if (tm->expires != 0)
print_uint(PRINT_ANY, "expires", " expires %u sec",
tm->expires / hz);