diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-10-13 08:34:48 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:11 -0500 |
| commit | 040d86ade76e3791ea42d25a2b0261791e2f579b (patch) | |
| tree | d02796eb163ab033e070eda158c17a38f2538b4e /pimd/pim_oil.h | |
| parent | 0f5889897125e5ba5d62bc1151cec3c7d6c6d404 (diff) | |
pimd: Create channel_oil hash for quicker lookup
When looking up the channel_oil use a hash
to find it. Keep the list around for quick
walks of the channel oils.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_oil.h')
| -rw-r--r-- | pimd/pim_oil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pimd/pim_oil.h b/pimd/pim_oil.h index 4b23b211a9..0c99afb625 100644 --- a/pimd/pim_oil.h +++ b/pimd/pim_oil.h @@ -78,6 +78,11 @@ struct channel_oil { struct channel_counts cc; }; +extern struct list *pim_channel_oil_list; + +void pim_oil_init (void); +void pim_oil_terminate (void); + void pim_channel_oil_free(struct channel_oil *c_oil); struct channel_oil *pim_channel_oil_add(struct prefix_sg *sg, int input_vif_index); |
