RE: [EXTERNAL] [PATCH v2] graph: avoid id collisions

2024-03-26 Thread Kiran Kumar Kokkilagadda
> -Original Message- > From: Robin Jarry > Sent: Tuesday, March 26, 2024 9:20 PM > To: dev@dpdk.org; Jerin Jacob ; Kiran Kumar > Kokkilagadda ; Nithin Kumar Dabilpuram > ; Zhirun Yan > Subject: [EXTERNAL] [PATCH v2] graph: avoid id collisions > > Prior

[PATCH v2] graph: avoid id collisions

2024-03-26 Thread Robin Jarry
The graph id is determined based on a global variable that is incremented every time a graph is created, and decremented every time a graph is destroyed. This only works if graphs are destroyed in the reverse order in which they have been created. The following code produces duplicate graph IDs wh