diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-08-04 07:36:51 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-08-05 07:51:27 -0400 |
| commit | 0a5f9773a8b02e56af6232348fd2595e5300fc92 (patch) | |
| tree | 1a783680095ad85749b76be373e399f324ab15a8 /zebra/zebra_mpls.c | |
| parent | d5795103bc1dc4aada29b1ae7a052a97e07eb8bc (diff) | |
zebra: zrouter.in_shutdown is an atomic variable
So let's treat the variable like it is atomic and
properly load it when we need to look at it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index 41f85af635..caac3e3230 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -1035,15 +1035,12 @@ static void lsp_processq_del(struct work_queue *wq, void *data) struct zebra_lsp *lsp; struct hash *lsp_table; struct zebra_nhlfe *nhlfe; - bool in_shutdown = false; /* If zebra is shutting down, don't delete any structs, * just ignore this callback. The LSPs will be cleaned up * during the shutdown processing. */ - in_shutdown = atomic_load_explicit(&zrouter.in_shutdown, - memory_order_relaxed); - if (in_shutdown) + if (zebra_router_in_shutdown()) return; zvrf = vrf_info_lookup(VRF_DEFAULT); |
