From a625e9373be06671b0b9e3cafb026dec5a0cb9b5 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 12 Feb 2017 20:16:08 -0500 Subject: 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 --- pimd/pim_ifchannel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pimd/pim_ifchannel.h') diff --git a/pimd/pim_ifchannel.h b/pimd/pim_ifchannel.h index 5cac0318c..c7084034a 100644 --- a/pimd/pim_ifchannel.h +++ b/pimd/pim_ifchannel.h @@ -154,4 +154,7 @@ void pim_ifchannel_scan_forward_start (struct interface *new_ifp); void pim_ifchannel_set_star_g_join_state (struct pim_ifchannel *ch, int eom); int pim_ifchannel_compare (struct pim_ifchannel *ch1, struct pim_ifchannel *ch2); + +unsigned int pim_ifchannel_hash_key (void *arg); +int pim_ifchannel_equal (const void *arg1, const void *arg2); #endif /* PIM_IFCHANNEL_H */ -- cgit v1.2.3