linux-cp: Add delegate to adjacencies 55/32255/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 6 May 2021 18:16:42 +0000 (13:16 -0500)
committerNeale Ranns <neale@graphiant.com>
Fri, 21 May 2021 11:51:38 +0000 (11:51 +0000)
commite2353a7f6c680ef50bc41892a4503168406b7787
tree11adbd850e95faba297973cc634e4fb1010e9c1b
parentdebb352df9ca40170534f1e3449934a02110db96
linux-cp: Add delegate to adjacencies

Type: improvement

When an adjacency is created, add the linux-cp delegate on the new
adjacency so we can later deal with modifications & deletions in our
cache of adjacency data.

Add a pool of hash keys and associate the pool index for a particular
key with the adj_delegate_t. If the rewrite on an adjacency is changed,
this will allow us to delete the old hash table entry and it will not
become orphaned.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Change-Id: I072b960c02cf377d66f7d18b8c0e9e05824a0ca3
src/plugins/linux-cp/lcp_adj.c