summaryrefslogtreecommitdiffstats
path: root/pimd/pim_iface.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-02-13 02:16:08 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-02-24 16:03:41 +0100
commita625e9373be06671b0b9e3cafb026dec5a0cb9b5 (patch)
tree69d7d0bbbf3848ff004f37cba91755ac1a73ecff /pimd/pim_iface.h
parentpimd: Trust the compiler (diff)
downloadfrr-a625e9373be06671b0b9e3cafb026dec5a0cb9b5.tar.xz
frr-a625e9373be06671b0b9e3cafb026dec5a0cb9b5.zip
pimd: Make ifchannel lookup a hash lookup
When we are at scale, it is possible that we have a very large number of ifchannels per interface. So make lookup for that situation to be a hash lookup. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.h')
-rw-r--r--pimd/pim_iface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_iface.h b/pimd/pim_iface.h
index 244de598d..7c0d57a5d 100644
--- a/pimd/pim_iface.h
+++ b/pimd/pim_iface.h
@@ -98,6 +98,7 @@ struct pim_interface {
uint16_t pim_override_interval_msec; /* config */
struct list *pim_neighbor_list; /* list of struct pim_neighbor */
struct list *pim_ifchannel_list; /* list of struct pim_ifchannel */
+ struct hash *pim_ifchannel_hash;
/* neighbors without lan_delay */
int pim_number_of_nonlandelay_neighbors;