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 872A4A00C2; 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 A587741142; Thu, 10 Mar 2022 18:21:30 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 38B6B4113F for ; Thu, 10 Mar 2022 18:21:29 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id h5so4098875plf.7 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=zPYjyjaOfd+MJ8DgwF0w+Ry9YAoMPnOfkU7bLcBG2y4VnmE1/tRpMdPdmOUg2LP74x 9KuDmESs2T01AB4s/kV9B13fF7ExpgINDd1O/Q6SFpvViyKBAOD4MxgZQLwZAEEd4odU mgMf2+bBRn1mLkQMC4qnMOvTKkBQgkhKVRqSutkZZbeRnglTapdGhOLEscuYJEgSHVet 9Abln3nSDVIXv39IweYHSC0uIkgxWPUVm93XyHn0n8M9rAO6B0p3XF8yw5DxManMgTu0 EOZbiRA7xm6qqHpaMMURdmfhjCb9taNkMZz7AwuPm+YkctyJUnurl8WSN4FRW0zf/6vu LiDA== X-Gm-Message-State: AOAM530bDQsDx6bnlb2If7SEfh5txlICeKVM5/Evamo+NGCKhIWVNwDC AjNeXu8muvCtkTyHS36iC9h403g4/6SY/w== 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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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.