]> git.proxmox.com Git - mirror_frr.git/commit
lib: allow listnode memory to be managed by the app
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Fri, 27 Mar 2020 14:28:32 +0000 (07:28 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 5 Aug 2020 13:46:12 +0000 (06:46 -0700)
commit5c733b883d8f718fe5be258c7a653aac6d310b71
tree36dfd33c54515eb407d2e649eee212b1713c3d1f
parent89fbf168c22501f518c7532e0d4c97cf0e3f119c
lib: allow listnode memory to be managed by the app

In most cases this memory is pre-allocated along with the base element.
Similarly it is stored in the base element to allow efficient del
without lookup (main reason for using DLL vs. SLL).

So (in most cases) there should be no need to manage the element/data
and listnode memories separately.

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
lib/linklist.c
lib/linklist.h