summaryrefslogtreecommitdiff
path: root/pimd/pim_instance.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-17 21:13:09 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-17 21:13:09 -0400
commitda11e32521af32b4db39eeb48f2725e9f3db824d (patch)
treeba4ef32067ef07174f15ff4f0883b4a93b4a84a3 /pimd/pim_instance.h
parent78c16071f99bf3a5df1800a26656c3362eb0ba48 (diff)
pimd: Make the rpf scan per vrf.
We know the vrf that we are in when we need to initiate a rescan of the rpf cache. So pass it in and use that information. This should help the rescan at scale with several vrf's cutting out a lot of unnecessary work. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_instance.h')
-rw-r--r--pimd/pim_instance.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_instance.h b/pimd/pim_instance.h
index 5422e8fe0d..e672c39fdc 100644
--- a/pimd/pim_instance.h
+++ b/pimd/pim_instance.h
@@ -94,6 +94,9 @@ struct pim_instance {
unsigned int keep_alive_time;
unsigned int rp_keep_alive_time;
+
+ /* If we need to rescan all our upstreams */
+ struct thread *rpf_cache_refresher;
};
void pim_vrf_init(void);