Hi, I found the BFD tx time is not correct.
vpp# show bfd sessions
Index               Property                  Local value         Remote value
0     IPv4 address                                  2.2.2.4              2.2.2.3
Session state                                    Down                 Down
Diagnostic code                         No Diagnostic        No Diagnostic
Detect multiplier                                   4                    0
Required Min Rx Interval (usec)               3000000                    1
Desired Min Tx Interval (usec)                2000000                    0
Transmit interval                             1000000
Last control frame tx                   24456.97s ago                           
 -------------------------------this time is wrong.
Min Echo Rx Interval (usec)                         1                    0
Demand mode                                        no                   no
Poll state                        BFD_POLL_NOT_NEEDED
Number of configured BFD sessions: 1

I check the code found the get time API is not correct.

static u8 *
format_bfd_session_cli (u8 * s, va_list * args)
{

....

u64 now = clib_cpu_time_now ();   --------------- this line , I think it should 
be  "vlib_time_now (vm)"

tmp = format (tmp, "%.2fs ago", (now - bs->last_tx_nsec) *                   
-------------- bs->last_tx_nsec is got by  'vlib_time_now'
91             vm->clib_time.seconds_per_clock);
92       s = format (s, "%10s %-32s %20v\n", "", "Last control frame tx", tmp);
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#27121): https://lists.fd.io/g/vpp-dev/message/27121
Mute This Topic: https://lists.fd.io/mt/120461610/21656
Mute #bfd:https://lists.fd.io/g/vpp-dev/mutehashtag/bfd
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to