diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-17 21:13:09 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-17 21:13:09 -0400 |
| commit | da11e32521af32b4db39eeb48f2725e9f3db824d (patch) | |
| tree | ba4ef32067ef07174f15ff4f0883b4a93b4a84a3 /pimd/pim_instance.h | |
| parent | 78c16071f99bf3a5df1800a26656c3362eb0ba48 (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.h | 3 |
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); |
