linux-cp: detect and delete stale entries after sync 22/35522/3
authorAlexander Chernavin <[email protected]>
Wed, 20 Oct 2021 13:22:14 +0000 (13:22 +0000)
committerMatthew Smith <[email protected]>
Thu, 3 Mar 2022 19:07:18 +0000 (19:07 +0000)
commitaebfc285a89be20f68e5599b8d67dda8f20888a5
treeaddde3494d0c3243301825943c224c9c250a7c2d
parent6db19a9f48e281f4bbeb49559fe1ffb7f7ff3e0d
linux-cp: detect and delete stale entries after sync

Type: improvement

During synchronization, only the current actual set of entries is
loaded. If some entries are no longer present in the set being loaded
but present in VPP, they should be removed to fully syncronize.

With this change, add handlers for sync begin and end events. Begin
handlers will mark the entries as stale. End handlers will remove the
entries that are still marked as stale.

Signed-off-by: Alexander Chernavin <[email protected]>
Change-Id: I4f7e872af3e1c9ffa6c63bcc3984ec76def1bb43
src/plugins/linux-cp/lcp_router.c