]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Properly unregister hook on shutdown
authorDonald Sharp <sharpd@nvidia.com>
Mon, 11 Dec 2023 20:22:07 +0000 (15:22 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 11 Dec 2023 20:22:07 +0000 (15:22 -0500)
commit7cabd9361ca981c9f1becae2505d6fc35e32bd5f
treeae935d984e58a2717b7bb3d85c770dde675f002b
parentc783d5b698b77dfac44ffbd69ae9160a1723da6a
zebra: Properly unregister hook on shutdown

the zebra pseudo wire code was registering a callback
per vrf.  These callbacks are not per vrf based.  They
are vrf agnostic so this was a mistake.  Modify the code
to on startup register once and on shutdown unregister once.

Finally rename the zebra_pw_init and zebra_pw_exit functions
to more properly reflect when they are called.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/main.c
zebra/zebra_pw.c
zebra/zebra_pw.h
zebra/zebra_vrf.c