summaryrefslogtreecommitdiffstats
path: root/lib/test_objagg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test_objagg: Fix warning.David S. Miller2018-11-151-0/+1
| | | | | | | lib/test_objagg.c: In function ‘test_delta_action_item’: ./include/linux/printk.h:308:2: warning: ‘errmsg’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: David S. Miller <davem@davemloft.net>
* lib: introduce initial implementation of object aggregation managerJiri Pirko2018-11-151-0/+835
This lib tracks objects which could be of two types: 1) root object 2) nested object - with a "delta" which differentiates it from the associated root object The objects are tracked by a hashtable and reference-counted. User is responsible of implementing callbacks to create/destroy root entity related to each root object and callback to create/destroy nested object delta. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>