summaryrefslogtreecommitdiffstats
path: root/isisd/isis_dr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-03 19:49:45 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-07-21 14:30:50 +0200
commitfa935aa7e8d46e4e5ff717f68523261903bb68b7 (patch)
treee51df039e6ce577165068a23ee520c9cb11bb4bd /isisd/isis_dr.c
parentzebra: Convert thread_cancel to THREAD_OFF (diff)
downloadfrr-fa935aa7e8d46e4e5ff717f68523261903bb68b7.tar.xz
frr-fa935aa7e8d46e4e5ff717f68523261903bb68b7.zip
isisd: Convert thread_cancel to THREAD_OFF
Just convert all uses of thread_cancel to THREAD_OFF Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'isisd/isis_dr.c')
-rw-r--r--isisd/isis_dr.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/isisd/isis_dr.c b/isisd/isis_dr.c
index 27b738807..b9bf49867 100644
--- a/isisd/isis_dr.c
+++ b/isisd/isis_dr.c
@@ -222,8 +222,8 @@ int isis_dr_resign(struct isis_circuit *circuit, int level)
circuit->u.bc.is_dr[level - 1] = 0;
circuit->u.bc.run_dr_elect[level - 1] = 0;
- thread_cancel(&circuit->u.bc.t_run_dr[level - 1]);
- thread_cancel(&circuit->u.bc.t_refresh_pseudo_lsp[level - 1]);
+ THREAD_OFF(circuit->u.bc.t_run_dr[level - 1]);
+ THREAD_OFF(circuit->u.bc.t_refresh_pseudo_lsp[level - 1]);
circuit->lsp_regenerate_pending[level - 1] = 0;
memcpy(id, circuit->isis->sysid, ISIS_SYS_ID_LEN);
@@ -247,7 +247,7 @@ int isis_dr_resign(struct isis_circuit *circuit, int level)
&circuit->t_send_psnp[1]);
}
- thread_cancel(&circuit->t_send_csnp[level - 1]);
+ THREAD_OFF(circuit->t_send_csnp[level - 1]);
thread_add_timer(master, isis_run_dr,
&circuit->level_arg[level - 1],
@@ -285,8 +285,6 @@ int isis_dr_commence(struct isis_circuit *circuit, int level)
circuit->circuit_id;
assert(circuit->circuit_id); /* must be non-zero */
- /* if (circuit->t_send_l1_psnp)
- thread_cancel (circuit->t_send_l1_psnp); */
lsp_generate_pseudo(circuit, 1);
thread_add_timer(master, send_l1_csnp, circuit,
@@ -307,8 +305,6 @@ int isis_dr_commence(struct isis_circuit *circuit, int level)
circuit->circuit_id;
assert(circuit->circuit_id); /* must be non-zero */
- /* if (circuit->t_send_l1_psnp)
- thread_cancel (circuit->t_send_l1_psnp); */
lsp_generate_pseudo(circuit, 2);
thread_add_timer(master, send_l2_csnp, circuit,