Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7a90e50
)
bfd: always start timers with non-zero tick counts
24/26424/2
author
Dave Barach
<dave@barachs.net>
Wed, 8 Apr 2020 12:45:27 +0000
(08:45 -0400)
committer
Florin Coras
<florin.coras@gmail.com>
Thu, 9 Apr 2020 14:31:16 +0000
(14:31 +0000)
Otherwise the tw_timer_template code ASSERTs...
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I85e00a3e3486e3b238254ac4116d684a32984434
src/vnet/bfd/bfd_main.c
patch
|
blob
|
history
diff --git
a/src/vnet/bfd/bfd_main.c
b/src/vnet/bfd/bfd_main.c
index
3570ae0
..
4b89757
100644
(file)
--- a/
src/vnet/bfd/bfd_main.c
+++ b/
src/vnet/bfd/bfd_main.c
@@
-332,6
+332,7
@@
bfd_set_timer (bfd_main_t * bm, bfd_session_t * bs, u64 now,
"wheel_time_ticks %u", bs->event_time_nsec,
bs->event_time_nsec - now,
(bs->event_time_nsec - now) * SEC_PER_NSEC, wheel_time_ticks);
+ wheel_time_ticks = wheel_time_ticks ? wheel_time_ticks : 1;
bfd_lock (bm);
if (bs->tw_id)
{