summaryrefslogtreecommitdiffstats
path: root/src/vnet/bfd/bfd_debug.h
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-02-10 11:49:52 +0000
committerDave Barach <openvpp@barachs.net>2020-02-17 12:49:46 +0000
commita316744bc5e003d0fa4c8aff82c619b300115f02 (patch)
tree49ef9c1b79483ac55db1e08c6be100c5ce343fee /src/vnet/bfd/bfd_debug.h
parent00fdf53c7076d1bd0045439e73f0144d613eb09c (diff)
bfd: use tw_timer_template instead of legacy wheel
Type: refactor Change-Id: I04e71a64e676910dc4c6cbc1ab54ffb0c29aa5b9 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/bfd/bfd_debug.h')
-rw-r--r--src/vnet/bfd/bfd_debug.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/vnet/bfd/bfd_debug.h b/src/vnet/bfd/bfd_debug.h
index a06e934f560..6f4f60c8129 100644
--- a/src/vnet/bfd/bfd_debug.h
+++ b/src/vnet/bfd/bfd_debug.h
@@ -63,12 +63,9 @@
} \
while (0);
-#define BFD_CLK_FMT "%luus/%lu clocks/%.2fs"
-#define BFD_CLK_PRN(clocks) \
- (u64) ((((f64)clocks) / vlib_get_main ()->clib_time.clocks_per_second) * \
- USEC_PER_SECOND), \
- (clocks), \
- (((f64)clocks) / vlib_get_main ()->clib_time.clocks_per_second)
+#define BFD_CLK_FMT "%luus/%lu nsec/%.2fs"
+#define BFD_CLK_PRN(nsec) \
+ (nsec * NSEC_PER_SEC), (nsec), (((f64)nsec) / NSEC_PER_SEC)
#else
#define BFD_DBG(...)