vppinfra: minimize tw verbosity on timebase jump 80/25780/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 10 Mar 2020 23:19:53 +0000 (23:19 +0000)
committerDave Barach <openvpp@barachs.net>
Wed, 11 Mar 2020 15:00:08 +0000 (15:00 +0000)
Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I5db3457a9fed11d6ecf6eaabcdf8f1d1177b2a9f

src/vppinfra/tw_timer_template.c

index 6b005fd..e78c309 100644 (file)
@@ -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;
     }