]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Limit speed lookup to at most 4 minutes 10640/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 23 Feb 2022 15:32:23 +0000 (10:32 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 28 Feb 2022 11:39:07 +0000 (06:39 -0500)
commitfbc83b9a106bd795aa554255f674edee6ec66526
tree9e4fb4b3c2e74fa5d150985f5bfa889686cec245
parent115335d3e324e8173563dd0ebc0b6ac9512295d8
zebra: Limit speed lookup to at most 4 minutes

There exists some interface types that are slow on startup
to fully register their link speed.  Especially those that
are working with an asic backend.  The speed_update timer
associated with each interface would keep trying if the
system returned a MAX_UINT32 as the speed.  This speed
means both unknown or there is none under linux.

Since some interface types are slow on startup let's modify
FRR to try for at most 4 minutes and give up trying on those
interfaces where we never get any useful data.

Why 4 minutes?  I wanted to balance the time associated with
slow interfaces coming up with those that will never give us
a value.  So I choose 4 minutes as a good ballpark of time
to keep trying

Why not track all those interfaces and just not attempt to
do the speed lookup?  I would prefer to not keep track of these
as that I do not know all the interface types, nor do I wish
to keep programming as new ones come in.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/interface.c
zebra/interface.h