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

2022-07-09 Thread Hamza Khan
info structures. * The change is small and doesn’t affect other code * Testing was performed on the patch Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host") Cc: alan.ca...@intel.com Cc: sta...@dpdk.org Signed-off-by: Hamza Khan --- V3: Update commit messa

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

2022-07-07 Thread Hamza Khan
info structures. Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host") Cc: alan.ca...@intel.com Cc: sta...@dpdk.org Signed-off-by: Hamza Khan --- examples/vm_power_manager/channel_manager.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletion

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

2022-06-05 Thread Hamza Khan
nitor in host") Cc: alan.ca...@intel.com Cc: sta...@dpdk.org Signed-off-by: Hamza Khan --- examples/vm_power_manager/channel_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manag

[PATCH 1/2] common: add safe version of foreach-list to Linux

2022-06-05 Thread Hamza Khan
Linux EAL does not have the LIST_FOREACH_SAFE version of the iterator macros. Add it. Signed-off-by: Hamza Khan --- lib/eal/linux/include/rte_os.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib/eal/linux/include/rte_os.h b/lib/eal/linux/include/rte_os.h index c72bf5b7e6