Re: [PATCH] examples/vm_power: replace list foreach with while loop

2022-03-10 Thread Stephen Hemminger
On Thu, 10 Mar 2022 09:32:08 + "Koikkara Reeny, Shibin" wrote: > > -Original Message- > > From: Thomas Monjalon > > 01/03/2022 15:53, Shibin Koikkara Reeny: > > > Linux header files don't support LIST_FOREACH_SAFE so replacing > > > LIST_FOREACH with while loop. > > > > What is

Re: [PATCH] examples/vm_power: replace list foreach with while loop

2022-03-10 Thread Thomas Monjalon
10/03/2022 10:32, Koikkara Reeny, Shibin: > > -Original Message- > > From: Thomas Monjalon > > 01/03/2022 15:53, Shibin Koikkara Reeny: > > > Linux header files don't support LIST_FOREACH_SAFE so replacing > > > LIST_FOREACH with while loop. > > > > What is the original issue you are tryi

RE: [PATCH] examples/vm_power: replace list foreach with while loop

2022-03-10 Thread Koikkara Reeny, Shibin
> -Original Message- > From: Thomas Monjalon > 01/03/2022 15:53, Shibin Koikkara Reeny: > > Linux header files don't support LIST_FOREACH_SAFE so replacing > > LIST_FOREACH with while loop. > > What is the original issue you are trying to solve? Asan tool reported LIST_FOREACH should be r

Re: [PATCH] examples/vm_power: replace list foreach with while loop

2022-03-08 Thread Thomas Monjalon
01/03/2022 15:53, Shibin Koikkara Reeny: > Linux header files don't support LIST_FOREACH_SAFE so replacing > LIST_FOREACH with while loop. What is the original issue you are trying to solve? > - struct virtual_machine_info *vm_info; > - > - LIST_FOREACH(vm_info, &vm_list_head, vms_info) {

[PATCH] examples/vm_power: replace list foreach with while loop

2022-03-01 Thread Shibin Koikkara Reeny
Linux header files don't support LIST_FOREACH_SAFE so replacing LIST_FOREACH with while loop. Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host") Cc: alan.ca...@intel.com Cc: sta...@dpdk.org Signed-off-by: Shibin Koikkara Reeny --- examples/vm_power_manager/channel_ma