Previously LRP would be released as soon as the BFD session to
another chassis is established even if that chassis is unable to
claim the LRP for whatever reason.
This patch introduces a cache to keep track of LRPs claimed by the
current chassis and release it only if an update event for LRP claim
Using cache improves performance of recomputation of lflows(by
about 30%)
Exising lflow cache for `matches` and `expressions` is adopted
to include `actions` as well.
Co-authored-by: Felix Huettner
Signed-off-by: Felix Huettner
Signed-off-by: Ihtisham ul Haq
---
controller/lflow-cache.c
Using cache improves performance of recomputation of lflows. We see
about 30% improvments during our tests
Exising lflow cache for `matches` and `expressions` is adopted
to include `actions` as well.
Co-authored-by: Felix Huettner
Signed-off-by: Ihtisham ul Haq
---
controller/lflow-cache.c