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 E332BA0C4C; Thu, 2 Sep 2021 17:22:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A86C64003E; Thu, 2 Sep 2021 17:22:20 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 8DAB14003C for ; Thu, 2 Sep 2021 17:22:19 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id c6so1594119pjv.1 for ; Thu, 02 Sep 2021 08:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vf7hVefiXabhWvb4++RhulsJzjIwsXhNeHV3kqAj/Nc=; b=16jq4TqJlYfzrw7bCspVi/6l87swp10s7xpCcu5qO2fO35J0+VNisrUvjLnTxGfIx9 OK8WAWgk+0RaS1MTPzJL2+Y8gjRa6QpcIoYdpZCITKwtqiTiQbRDa+xlv8DG0YgMwsit YbqHZ8Lm2cVjOPcwvl9vZD++dAnfOpvLUNHfQK5qWV4oo6EcGmfz+08fThl3cymcXAVz UvatnHbcqR/siJ9rf294v0yvCXiCY3OMj4KViMAryoopCh8eKOvif23kg4GXw/5lb+nN ndAQoofGGDKXY2keB7alvQiwgQiwdUw44TL6Q5jA2UXw6yRDdl30fyP0GYP/VkSWrLaM Z1Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vf7hVefiXabhWvb4++RhulsJzjIwsXhNeHV3kqAj/Nc=; b=sEg6TViYWVywzCtGa/4qb7P7G9pYxEBjf/H07mnJqX8ll0J8pyM+FWiuXp0JbYqGFB EmBiVpJpVi/lLyX/JOY5sPt8sK6HBhk85YEs0DWZ/2SlGU1kI8mRRKADwIWlGBgwXIH3 lOFuKTsDn8BSje3OOl8mNOv9A8hp5XjefA0KaD05zAo7rZs6wzRu5sWu0XG62pNBDjDZ FSDl2sNlYeU0IwYs7WRoUYvDgAufbsWilOZBPDST6yoK83B+luFIedpm3547iVAFbG4E OfTfkZv6VQHLfNvbbFZb2uX5cgQVaeRFVU5KCdaRmVUe7BslGFnXmMZjydtfwHjVzbkL PQ1A== X-Gm-Message-State: AOAM532ulRAd9ulRa/gATMRnQGHMwhigZclqbH/cdD2vFOcUcff0NozQ jc2Rqtq3hjjQth34P8Hlqq9Ks/oissox0w== X-Google-Smtp-Source: ABdhPJxXn+iGgbElRDsyyqTaWtLTCp0JRx8N+PF/TflJfW9crIpyVbXDavfdXiKYf/xGIkLcLtw/Ew== X-Received: by 2002:a17:90a:3b0e:: with SMTP id d14mr4552843pjc.164.1630596138468; Thu, 02 Sep 2021 08:22:18 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id b17sm2719459pfo.98.2021.09.02.08.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 08:22:18 -0700 (PDT) Date: Thu, 2 Sep 2021 08:22:08 -0700 From: Stephen Hemminger To: Feifei Wang Cc: dev@dpdk.org, nd@arm.com Message-ID: <20210902082208.6244fec8@hermes.local> In-Reply-To: <20210902053253.3017858-1-feifei.wang2@arm.com> References: <20210902053253.3017858-1-feifei.wang2@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC PATCH v1 0/5] add new API for wait until scheme 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 Sender: "dev" On Thu, 2 Sep 2021 13:32:48 +0800 Feifei Wang wrote: > Add new API for wait_until scheme, and apply this new API into lib to > replace rte_pause. > > Feifei Wang (5): > eal: add new API for wait until scheme > eal: use wait until scheme for read pflock > eal: use wait until scheme for mcslock > lib/bpf: use wait until scheme for Rx/Tx iteration > lib/distributor: use wait until scheme > > lib/bpf/bpf_pkt.c | 11 +- > lib/distributor/rte_distributor_single.c | 10 +- > lib/eal/arm/include/rte_pause_64.h | 271 ++++++++++++++++---- > lib/eal/include/generic/rte_mcslock.h | 9 +- > lib/eal/include/generic/rte_pause.h | 309 +++++++++++++++++++++++ > lib/eal/include/generic/rte_pflock.h | 5 +- > 6 files changed, 543 insertions(+), 72 deletions(-) > Since these are all inline, would it be possible to make this a macro and have the caller pass a condition function? Look at Linux wait_event() for an example of that.