Re: [PATCH v4 2/3] graph: add support for node free API

2024-11-14 Thread Stephen Hemminger
On Thu, 14 Nov 2024 14:38:05 +0530 wrote: > > +uint8_t > +graph_is_node_active_in_graph(struct node *node) For true/false functions bool type is preferred. It prevents cases where function accidentally returns 2.

[PATCH v4 2/3] graph: add support for node free API

2024-11-14 Thread kirankumark
From: Kiran Kumar K Add support for rte_node_free API to free the node and its memory, if node is not part of any of the created graphs. Signed-off-by: Kiran Kumar K --- lib/graph/graph.c | 16 lib/graph/graph_private.h | 13 + lib/graph/node.c | 2