]> git.puffer.fish Git - mirror/frr.git/commit
zebra: re-install nhg on interface up
authorAshwini Reddy <ashred@nvidia.com>
Wed, 19 Apr 2023 18:35:25 +0000 (11:35 -0700)
committerChirag Shah <chirag@nvidia.com>
Fri, 5 May 2023 21:37:52 +0000 (14:37 -0700)
commit5bb87732f62d8dc0d92cad264fce568e5cf12366
tree25ac8ea129d55c7482ae3c26d313af1fcc5b91b5
parent4ead6555c9ed47d6e512512b4a1989830be90d94
zebra: re-install nhg on interface up

Intermittently zebra and kernel are out of sync
when interface flaps and the add's/dels are in
same processing queue and zebra assumes no change in nexthop.
Hence we need to bring in a reinstall to kernel
of the nexthops and routes to sync their states.

Upon interface flap kernel would have deleted NHGs
associated to a interface (the one flapped),
zebra retains NHGs for 3 mins even though upper
layer protocol removes the nexthops (associated NHG).
As part of interface address add ,
re-add singleton NHGs associated to interface.

Ticket: #3173663
Issue: 3173663

Signed-off-by: Ashwini Reddy <ashred@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
lib/nexthop.c
lib/nexthop.h
zebra/redistribute.c
zebra/zebra_nhg.c
zebra/zebra_nhg.h