vrrp: force sleeps between timer events 13/42413/1
authorMatthew Smith <[email protected]>
Mon, 27 Jan 2025 19:49:07 +0000 (19:49 +0000)
committerMatthew Smith <[email protected]>
Thu, 13 Mar 2025 21:26:52 +0000 (21:26 +0000)
commit1a28873a5be61a730fc600e8337ff26ad6cdd01f
tree0b6d4574beba8754bce400cab0e5dd16a77b8fde
parentaf12ed005d50809e130b93a4d9c934a961081dcf
vrrp: force sleeps between timer events

Adding a virtual MAC to some NICs can take a significant amount of time.
If a lot of VRs enter the master state around the same time, the process
node can stay active for a very long time processing all of the transitions.

Try to force a 10 us sleep between processing events to ensure that the
process node does not prevent API messages and RPCs from being handled for
an extended period.

Type: improvement

Signed-off-by: Matthew Smith <[email protected]>
Change-Id: I400a7d395b4c0fec371f70d359e9d184ae79645e
(cherry picked from commit b41167a0bbbd3d81a2dd8e756d938f89b5ace5f3)
src/plugins/vrrp/vrrp_periodic.c