diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-25 09:45:03 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-25 14:22:15 -0400 |
| commit | 9fb302f41d836328ad56588036eaf43fe84e2ddf (patch) | |
| tree | 2aa899aa8407118d54d2af441e8cb7ca89e5266d /pimd/pim_instance.c | |
| parent | 7c59195031572b855dc4da9a78bfe794d41ab281 (diff) | |
pimd: Setup hash names appropriately
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_instance.c')
| -rw-r--r-- | pimd/pim_instance.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index 883720942e..fc25f352b9 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -66,6 +66,7 @@ static void pim_instance_terminate(struct pim_instance *pim) static struct pim_instance *pim_instance_init(struct vrf *vrf) { struct pim_instance *pim; + char hash_name[64]; pim = XCALLOC(MTYPE_PIM_PIM_INSTANCE, sizeof(struct pim_instance)); if (!pim) @@ -81,8 +82,9 @@ static struct pim_instance *pim_instance_init(struct vrf *vrf) pim_msdp_init(pim, master); - pim->rpf_hash = - hash_create_size(256, pim_rpf_hash_key, pim_rpf_equal, NULL); + snprintf(hash_name, 64, "PIM %s RPF Hash", vrf->name); + pim->rpf_hash = hash_create_size(256, pim_rpf_hash_key, + pim_rpf_equal, hash_name); if (PIM_DEBUG_ZEBRA) zlog_debug("%s: NHT rpf hash init ", __PRETTY_FUNCTION__); |
