]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: On shutdown do not create a workqueue for the self peer
authorDonald Sharp <sharpd@nvidia.com>
Wed, 15 Nov 2023 21:23:56 +0000 (16:23 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 21 Nov 2023 17:41:18 +0000 (12:41 -0500)
commit7bf3c2fb195f34382e1bf00ed2c91310a1dc9f86
tree6a51b8c288cedc8f657bab22b12c3ec58db378c1
parent0b81a7524d2056b53ea86aab8095f528d645592d
bgpd: On shutdown do not create a workqueue for the self peer

When bgp is shutting down, it calls bgp_fsm_change_status
on everything including a self peer, which goes through
and cleans the tables of the self peer data structures
as if it's a real peer.  Add a bit of code to just
not do the work at all.  This allows unlocks to flow
a bit further and for the self peer to be deleted
on shutdown.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_fsm.c