From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82746A00BE for ; Thu, 10 Mar 2022 18:21:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 818A64113E; Thu, 10 Mar 2022 18:21:30 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 37CEC4113E for ; Thu, 10 Mar 2022 18:21:29 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id 9so5459571pll.6 for ; Thu, 10 Mar 2022 09:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ct24f2Llqe2KdZEMvbC8weeHloI6Oi/uPKYowbcfQfk=; b=hC0UDZUxIgfAp5WGVbZuZK84K3t+6hfmGzxlWSIt/LbrAqSYCWYRQAaQdXJ7uOxtc/ U4C4NsngmqebDMcmf3vmN1ohdhWtPC9+AOVaKVwwe5RIolsPCZarNE2JGbSYll9WAm1y 1WoW60IO5RY8FvC2k9T1J6niwEHearOJp+xvrOU2P7mmN42eAukj8VNI6TKGlPH+CY26 tmDtoTHoYgQHTKza471MgCQ1rHDnw3FOZ28YjkQQMNrH3UMWE37gGkMFpFaX7p2Z9ZsO AY3FaUj5G70rBnrQFhPcXbotksku7i0j1sqnru2vAQ+sFbTMVzGidQLlXmwuZpTQBgyg 99jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ct24f2Llqe2KdZEMvbC8weeHloI6Oi/uPKYowbcfQfk=; b=l+w3tFQzWlwi+2GtESb4vzIJxqvzElo2+D4tOT1hE+1OTlKirkhXw8YDtwsNBN9UXb zzVnW5OFaGEr7EPRpB9GA8Iw0zQq4GsIzz71MC7p4YRSNcc5KzJ37m/7rDHRxe+575N7 l8nrabzHb66sOseqOv+AHH9WfNXiQlbwJdBQ6fFkKcReB3FB1dZgBq+1muFVM5eJXMn/ vOW8CHgB1Xek8RGOtssx+ZWCi0DZOHaVrss1bwDhCakKqpioryFnFnRrkofq28Lv7LeQ A2OCXl+7MbuCpVXNBR1DYBJB8zsv1q+8c7OYfh7djVkDlpDkDXJUQ43Gq1llXMPSVfRy zWhw== X-Gm-Message-State: AOAM530GGliJJq55Ly/sK60AoTjMDThCnCO/kUYaDnE3GsS8IBOlWNzU B//AZavKpQRqGAts8qYep1t+kg== X-Google-Smtp-Source: ABdhPJxX5s9oyyF94QDa2sM3KbRHzjU+vyxo8Y2E0+89cV43pw7woJNDYF6ECHMjw1p6c4OU3LFF8Q== X-Received: by 2002:a17:902:6acc:b0:149:8f60:a526 with SMTP id i12-20020a1709026acc00b001498f60a526mr6346099plt.25.1646932888100; Thu, 10 Mar 2022 09:21:28 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id k4-20020a17090a910400b001bd171c7fd4sm10226592pjo.25.2022.03.10.09.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 09:21:27 -0800 (PST) Date: Thu, 10 Mar 2022 09:21:24 -0800 From: Stephen Hemminger To: "Koikkara Reeny, Shibin" Cc: Thomas Monjalon , "Hunt, David" , "dev@dpdk.org" , "stable@dpdk.org" Subject: Re: [PATCH] examples/vm_power: replace list foreach with while loop Message-ID: <20220310092124.4908ec07@hermes.local> In-Reply-To: References: <20220301145313.560577-1-shibin.koikkara.reeny@intel.com> <4112658.kXSN5OTJKJ@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Thu, 10 Mar 2022 09:32:08 +0000 "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 the original issue you are trying to solve? > Asan tool reported LIST_FOREACH should be replaced with LIST_FOREACH_SAFE but > Linux don't have LIST_FOREACH_SAFE API. So replacing it with while loop. > > Regards, > Shibin Why not just clone LIST_FOREACH_SAFE from BSD? That is what RTE_TAILQ does. It might be generally useful.