aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/tw_timer_template.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-03-10 23:19:53 +0000
committerDave Barach <openvpp@barachs.net>2020-03-11 15:00:08 +0000
commit31844c62b5b3af88cb688bbd33783b1146d0eb55 (patch)
tree05b2a0acf778122cd31782ffd9d74ca5c4f59460 /src/vppinfra/tw_timer_template.c
parent8a023fd7471c8695f9f9c7f39abfb0ac7e2b5c4c (diff)
vppinfra: minimize tw verbosity on timebase jump
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I5db3457a9fed11d6ecf6eaabcdf8f1d1177b2a9f
Diffstat (limited to 'src/vppinfra/tw_timer_template.c')
-rw-r--r--src/vppinfra/tw_timer_template.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vppinfra/tw_timer_template.c b/src/vppinfra/tw_timer_template.c
index 6b005fd2ff3..e78c309ebaa 100644
--- a/src/vppinfra/tw_timer_template.c
+++ b/src/vppinfra/tw_timer_template.c
@@ -540,8 +540,9 @@ static inline
*/
if (nticks > (1 << (TW_RING_SHIFT + 1)))
{
- clib_warning ("Excessive nticks %u at %.6f last run %.6f",
- nticks, now, tw->last_run_time);
+ if (nticks / tw->ticks_per_second > 100e-3)
+ clib_warning ("Excessive nticks %u at %.6f last run %.6f",
+ nticks, now, tw->last_run_time);
tw->last_run_time = now;
return callback_vector_arg;
}