netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 iproute2-next 1/1] tc: report time an action was first used
@ 2020-05-28  1:22 Roman Mashak
  2020-05-31 22:52 ` David Ahern
  0 siblings, 1 reply; 2+ messages in thread
From: Roman Mashak @ 2020-05-28  1:22 UTC (permalink / raw)
  To: dsahern; +Cc: stephen, netdev, jhs, xiyou.wangcong, jiri, Roman Mashak

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>
---
 tc/tc_util.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tc/tc_util.c b/tc/tc_util.c
index fd5fcb242b64..b7ff911b63ed 100644
--- a/tc/tc_util.c
+++ b/tc/tc_util.c
@@ -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);
--
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 iproute2-next 1/1] tc: report time an action was first used
  2020-05-28  1:22 [PATCH v2 iproute2-next 1/1] tc: report time an action was first used Roman Mashak
@ 2020-05-31 22:52 ` David Ahern
  0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2020-05-31 22:52 UTC (permalink / raw)
  To: Roman Mashak; +Cc: stephen, netdev, jhs, xiyou.wangcong, jiri

On 5/27/20 7:22 PM, Roman Mashak wrote:
> 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>
> ---
>  tc/tc_util.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 

applied to iproute2-next. Thanks,


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-31 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28  1:22 [PATCH v2 iproute2-next 1/1] tc: report time an action was first used Roman Mashak
2020-05-31 22:52 ` David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).