diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-31 09:58:42 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-02 07:44:00 -0400 |
| commit | 1a8a3da8c21b13bbb66d58ade9580b4f19d8e1ad (patch) | |
| tree | 508b7caa28b7f88083d6339dc358024b7260aaee /pimd/pim_iface.c | |
| parent | 07a2935559b6c32782ced4ef841125d9c102fecf (diff) | |
pimd: Remove almost duplicate pim->ifchannel_list
The pim->ifchannel_list can be duplicated by iterating
over each vrf and then over each pim_ifp->pim_ifchannel_list
Since list handling is taking allot of time at scale
convert over to using this value.
Additionally clean up pim_cmd.c to have helper functions
to handle the actual encoding of data for output.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.c')
| -rw-r--r-- | pimd/pim_iface.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 7f623c429c..24679a2461 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -56,16 +56,12 @@ void pim_if_init(struct pim_instance *pim) for (i = 0; i < MAXVIFS; i++) pim->iface_vif_index[i] = 0; - - pim->ifchannel_list = list_new(); - pim->ifchannel_list->cmp = - (int (*)(void *, void *))pim_ifchannel_compare; } void pim_if_terminate(struct pim_instance *pim) { - if (pim->ifchannel_list) - list_free(pim->ifchannel_list); + // Nothing to do at this moment + return; } static void *if_list_clean(struct pim_interface *pim_ifp) |
