Address bfd rpc scale issues 79/13679/11
authorDave Barach <dave@barachs.net>
Wed, 25 Jul 2018 12:30:27 +0000 (08:30 -0400)
committerJohn Lo <loj@cisco.com>
Wed, 29 Aug 2018 22:41:35 +0000 (22:41 +0000)
commit1e3417f72f5b7b6a5b056f75477d6d536196c34a
tree092c468acb86917b085fb4c943dca44db08f34fe
parente6446a3cd5f4b4faab87127c1a310e3c7fbf0e60
Address bfd rpc scale issues

Remove the expensive RPC call for every received packet and replace it with
lock-protected direct calls. Reinstate RPC for the less frequent
notification traffic.

Adjust the wakeup event sending logic to minimize the number of events
sent, by measuring the time it takes from sending the event to processing
it, and subsequently not sending the event if the pending wake-up time
is within 2x or the event propagation delay.

Eventually: remove oingo / oingoes.

Change-Id: I0b3d33c5d029527b54867a97ab07f35f346aaa3d
Signed-off-by: Dave Barach <dave@barachs.net>
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Signed-off-by: Steve Shin <jonshin@cisco.com>
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vnet/bfd/bfd_main.c
src/vnet/bfd/bfd_main.h
src/vnet/bfd/bfd_udp.c