diff options
author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-11-15 20:28:40 +0100 |
---|---|---|
committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-11-15 21:00:29 +0100 |
commit | ec83653333cc27d6f552f4b08842a7dfecce49e1 (patch) | |
tree | 48ab478c8cfd2e317c1be73b14c5de22c9ea6bb4 /pimd/pim_upstream.c | |
parent | pimd: we cannot change the Joined state based on RPF resolution (diff) | |
download | frr-ec83653333cc27d6f552f4b08842a7dfecce49e1.tar.xz frr-ec83653333cc27d6f552f4b08842a7dfecce49e1.zip |
pimd: replace direct accesses to t_ka_timer with a kat_running macro
No functional change, simple cleanup to improve readability
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r-- | pimd/pim_upstream.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index c79e85cd0..673c56ea5 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -536,7 +536,8 @@ void pim_upstream_register_reevaluate(struct pim_instance *pim) * is actually active; if it is not kat setup will trigger * source * registration whenever the flow becomes active. */ - if (!PIM_UPSTREAM_FLAG_TEST_FHR(up->flags) || !up->t_ka_timer) + if (!PIM_UPSTREAM_FLAG_TEST_FHR(up->flags) || + !pim_upstream_is_kat_running(up)) continue; if (pim_is_grp_ssm(pim, up->sg.grp)) { @@ -1046,11 +1047,6 @@ static bool pim_upstream_empty_immediate_olist(struct pim_instance *pim, return true; } -static bool pim_upstream_is_kat_running(struct pim_upstream *up) -{ - return (up->t_ka_timer != NULL); -} - /* * bool JoinDesired(*,G) { * if (immediate_olist(*,G) != NULL) |