summaryrefslogtreecommitdiffstats
path: root/pimd/pim_oil.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_oil.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_oil.c')
-rw-r--r--pimd/pim_oil.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pimd/pim_oil.c b/pimd/pim_oil.c
index 582fb42f3..b3bd94dc2 100644
--- a/pimd/pim_oil.c
+++ b/pimd/pim_oil.c
@@ -101,8 +101,13 @@ static unsigned int pim_oil_hash_key(void *arg)
void pim_oil_init(struct pim_instance *pim)
{
- pim->channel_oil_hash =
- hash_create_size(8192, pim_oil_hash_key, pim_oil_equal, NULL);
+ char hash_name[64];
+
+ snprintf(hash_name, 64, "PIM %s Oil Hash", pim->vrf->name);
+ pim->channel_oil_hash = hash_create_size(8192,
+ pim_oil_hash_key,
+ pim_oil_equal,
+ hash_name);
pim->channel_oil_list = list_new();
if (!pim->channel_oil_list) {