RE: [PATCH v3] examples/vm_power_manager: use safe version of list iterator

2022-07-19 Thread Pattan, Reshma
> -Original Message- > From: Hamza Khan > +#include "rte_tailq.h" Should include this as #include Otherwise looks good. If you are sending next version, include my Ack in the patch. Reviewed-by: Reshma Pattan Acked-by: Reshma Pattan

[PATCH v3] examples/vm_power_manager: use safe version of list iterator

2022-07-09 Thread Hamza Khan
Currently, when vm_power_manager exits, we are using a LIST_FOREACH macro to iterate over VM info structures while freeing them. This leads to use-after-free error. To address this, replace all usages of LIST_* with TAILQ_* macros, and use the RTE_TAILQ_FOREACH_SAFE macro to iterate and delete VM i

Re: [PATCH v3] examples/vm_power_manager: use safe version of list iterator

2022-07-08 Thread Hunt, David
On 08/07/2022 09:51, Hamza Khan wrote: Currently, when vm_power_manager exits, we are using a LIST_FOREACH macro to iterate over VM info structures while freeing them. This leads to use-after-free error. To address this, replace all usages of LIST_* with TAILQ_* macros, and use the RTE_TAILQ_FO