Message ID | 20200519152725.63486-1-mb@smartsharesystems.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F086A0093; Tue, 19 May 2020 17:27:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1FA361D68E; Tue, 19 May 2020 17:27:37 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 7D0D21D623 for <dev@dpdk.org>; Tue, 19 May 2020 17:27:36 +0200 (CEST) Received: from dkrd2.smartsharesys.local ([192.168.4.12]) by smartserver.smartsharesystems.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 19 May 2020 17:27:35 +0200 From: =?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com> To: olivier.matz@6wind.com, konstantin.ananyev@intel.com, Honnappa.Nagarahalli@arm.com, nd@arm.com Cc: dev@dpdk.org, =?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com> Date: Tue, 19 May 2020 15:27:23 +0000 Message-Id: <20200519152725.63486-1-mb@smartsharesystems.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200513153111.37063-1-mb@smartsharesystems.com> References: <20200513153111.37063-1-mb@smartsharesystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 19 May 2020 15:27:35.0285 (UTC) FILETIME=[0592CA50:01D62DF2] Subject: [dpdk-dev] [PATCH 0/2] ring: empty optimization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
ring: empty optimization
|
|
Message
Morten Brørup
May 19, 2020, 3:27 p.m. UTC
Testing if the ring is empty is as simple as comparing the producer and consumer pointers. Checkpatch complains about existing coding style violations, so the first part of the patch fixes those, and contains no functional changes. Morten Brørup (2): ring: coding style cleanup ring: empty optimization lib/librte_ring/rte_ring.c | 4 +-- lib/librte_ring/rte_ring.h | 46 +++++++++++++++++---------------- lib/librte_ring/rte_ring_elem.h | 10 +++---- lib/librte_ring/rte_ring_hts.h | 8 +++--- lib/librte_ring/rte_ring_rts.h | 8 +++--- 5 files changed, 39 insertions(+), 37 deletions(-)
Comments
On Tue, May 19, 2020 at 5:27 PM Morten Brørup <mb@smartsharesystems.com> wrote: > > Testing if the ring is empty is as simple as comparing the producer and > consumer pointers. > > Checkpatch complains about existing coding style violations, so the first > part of the patch fixes those, and contains no functional changes. > > Morten Brørup (2): > ring: coding style cleanup > ring: empty optimization > > lib/librte_ring/rte_ring.c | 4 +-- > lib/librte_ring/rte_ring.h | 46 +++++++++++++++++---------------- > lib/librte_ring/rte_ring_elem.h | 10 +++---- > lib/librte_ring/rte_ring_hts.h | 8 +++--- > lib/librte_ring/rte_ring_rts.h | 8 +++--- > 5 files changed, 39 insertions(+), 37 deletions(-) > > -- > 2.17.1 > Series applied, thanks.