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_zebra.c | |
| 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_zebra.c')
| -rw-r--r-- | pimd/pim_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 6115bcbf6e..cd0dd5c452 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -519,7 +519,7 @@ void pim_scan_oil() qpim_scan_oil_last = pim_time_monotonic_sec(); ++qpim_scan_oil_events; - for (ALL_LIST_ELEMENTS(qpim_channel_oil_list, node, nextnode, c_oil)) + for (ALL_LIST_ELEMENTS(pim_channel_oil_list, node, nextnode, c_oil)) pim_scan_individual_oil (c_oil); } |
