summaryrefslogtreecommitdiffstats
path: root/pimd/pim_upstream.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-07-25 15:45:03 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-25 20:22:15 +0200
commit9fb302f41d836328ad56588036eaf43fe84e2ddf (patch)
tree2aa899aa8407118d54d2af441e8cb7ca89e5266d /pimd/pim_upstream.c
parentpimd: NHT upstream list is inefficient (diff)
downloadfrr-9fb302f41d836328ad56588036eaf43fe84e2ddf.tar.xz
frr-9fb302f41d836328ad56588036eaf43fe84e2ddf.zip
pimd: Setup hash names appropriately
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r--pimd/pim_upstream.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index c7262d64b..96aaff09b 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -1752,11 +1752,16 @@ void pim_upstream_remove_lhr_star_pimreg(struct pim_instance *pim,
void pim_upstream_init(struct pim_instance *pim)
{
+ char hash_name[64];
+
pim->upstream_sg_wheel =
wheel_init(master, 31000, 100, pim_upstream_hash_key,
pim_upstream_sg_running);
+
+ snprintf(hash_name, 64, "PIM %s Upstream Hash",
+ pim->vrf->name);
pim->upstream_hash = hash_create_size(8192, pim_upstream_hash_key,
- pim_upstream_equal, NULL);
+ pim_upstream_equal, hash_name);
pim->upstream_list = list_new();
pim->upstream_list->del = (void (*)(void *))pim_upstream_free;