]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: nhgc state improvements when installed/removed 6705/head
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 2 Jul 2020 00:02:37 +0000 (20:02 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Thu, 9 Jul 2020 15:51:23 +0000 (11:51 -0400)
commit09813729c7625ff81056f24763d620f7d33251fa
tree60dc21084d8bc5a5364e1246c7b7bd9f45e88e1c
parent6db1188f0e3f3ad407cf45a7190800c00ca6bb26
pbrd: nhgc state improvements when installed/removed

Cleanup the marking of a nhc as installed/removed based on table
route installation.

We were not even handling the removal state at all.

We saw some timing issues with the routes being installed/removed
multiple times and then never resending the pbr map due to bad states
on the nhgc.

Dont worry about checking if its already marked installed before
scheduling the policy walk. We have a check in `pbr_send_map()`
to ensure we dont try to resend a map sequence already installed.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
pbrd/pbr_map.c
pbrd/pbr_map.h
pbrd/pbr_nht.c