Re: [PATCH v3] graph: avoid id collisions

2024-06-18 Thread David Marchand
On Tue, Jun 18, 2024 at 11:24 AM Robin Jarry wrote: > > 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 be

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

2024-06-18 Thread Kiran Kumar Kokkilagadda
From: Robin Jarry Sent: Tuesday, June 18, 2024 2:53 PM To: dev@dpdk.org; Jerin Jacob ; Kiran Kumar Kokkilagadda ; Nithin Kumar Dabilpuram ; Zhirun Yan Subject: [EXTERNAL] [PATCH v3] graph: avoid id collisions The graph id is determined based on a global variable that is incremented every

[PATCH v3] graph: avoid id collisions

2024-06-18 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