diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-12-25 10:26:52 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 | 
| commit | e16d030c65ca97b1ba68b93ada93b1d4edde59d3 (patch) | |
| tree | e3a57a2e2887a899cad71c0640047b2b2409b5fa /pimd/pim_bsm.c | |
| parent | 70d4d90c82f3fb4eb552438422afb79e29a4dca0 (diff) | |
*: Convert THREAD_XXX macros to EVENT_XXX macros
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_bsm.c')
| -rw-r--r-- | pimd/pim_bsm.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index ec2bfdcb29..b36e006311 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -54,7 +54,7 @@ void pim_bsm_write_config(struct vty *vty, struct interface *ifp)  static void pim_bsm_rpinfo_free(struct bsm_rpinfo *bsrp_info)  { -	THREAD_OFF(bsrp_info->g2rp_timer); +	EVENT_OFF(bsrp_info->g2rp_timer);  	XFREE(MTYPE_PIM_BSRP_INFO, bsrp_info);  } @@ -147,8 +147,8 @@ static void pim_on_bs_timer(struct event *t)  	struct bsgrp_node *bsgrp_node;  	struct bsm_rpinfo *bsrp; -	scope = THREAD_ARG(t); -	THREAD_OFF(scope->bs_timer); +	scope = EVENT_ARG(t); +	EVENT_OFF(scope->bs_timer);  	if (PIM_DEBUG_BSM)  		zlog_debug("%s: Bootstrap Timer expired for scope: %d", @@ -189,7 +189,7 @@ static void pim_bs_timer_stop(struct bsm_scope *scope)  	if (PIM_DEBUG_BSM)  		zlog_debug("%s : BS timer being stopped of sz: %d", __func__,  			   scope->sz_id); -	THREAD_OFF(scope->bs_timer); +	EVENT_OFF(scope->bs_timer);  }  static void pim_bs_timer_start(struct bsm_scope *scope, int bs_timeout) @@ -199,7 +199,7 @@ static void pim_bs_timer_start(struct bsm_scope *scope, int bs_timeout)  			zlog_debug("%s : Invalid scope(NULL).", __func__);  		return;  	} -	THREAD_OFF(scope->bs_timer); +	EVENT_OFF(scope->bs_timer);  	if (PIM_DEBUG_BSM)  		zlog_debug(  			"%s : starting bs timer for scope %d with timeout %d secs", @@ -268,8 +268,8 @@ static void pim_on_g2rp_timer(struct event *t)  	uint16_t elapse;  	pim_addr bsrp_addr; -	bsrp = THREAD_ARG(t); -	THREAD_OFF(bsrp->g2rp_timer); +	bsrp = EVENT_ARG(t); +	EVENT_OFF(bsrp->g2rp_timer);  	bsgrp_node = bsrp->bsgrp_node;  	/* elapse time is the hold time of expired node */ @@ -331,7 +331,7 @@ static void pim_g2rp_timer_start(struct bsm_rpinfo *bsrp, int hold_time)  			zlog_debug("%s : Invalid brsp(NULL).", __func__);  		return;  	} -	THREAD_OFF(bsrp->g2rp_timer); +	EVENT_OFF(bsrp->g2rp_timer);  	if (PIM_DEBUG_BSM)  		zlog_debug(  			"%s : starting g2rp timer for grp: %pFX - rp: %pPAs with timeout  %d secs(Actual Hold time : %d secs)", @@ -358,7 +358,7 @@ static void pim_g2rp_timer_stop(struct bsm_rpinfo *bsrp)  			   __func__, &bsrp->bsgrp_node->group,  			   &bsrp->rp_address); -	THREAD_OFF(bsrp->g2rp_timer); +	EVENT_OFF(bsrp->g2rp_timer);  }  static bool is_hold_time_zero(void *data)  | 
