From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v5 06/20] event/sw: add support for event queues Date: Mon, 27 Mar 2017 09:47:18 +0100 Message-ID: <20170327084718.GA17772@bricha3-MOBL3.ger.corp.intel.com> References: <489175012-101439-1-git-send-email-harry.van.haaren@intel.com> <1490374395-149320-1-git-send-email-harry.van.haaren@intel.com> <1490374395-149320-7-git-send-email-harry.van.haaren@intel.com> <20170327074011.fgodyrhquabj54r2@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Harry van Haaren , dev@dpdk.org To: Jerin Jacob Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 90740FA57 for ; Mon, 27 Mar 2017 10:47:25 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170327074011.fgodyrhquabj54r2@localhost.localdomain> 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 Mon, Mar 27, 2017 at 01:15:06PM +0530, Jerin Jacob wrote: > On Fri, Mar 24, 2017 at 04:53:01PM +0000, Harry van Haaren wrote: > > From: Bruce Richardson > > > > Add in the data structures for the event queues, and the eventdev > > functions to create and destroy those queues. > > > > Signed-off-by: Bruce Richardson > > Signed-off-by: Harry van Haaren > > --- > > drivers/event/sw/iq_ring.h | 176 ++++++++++++++++++++++++++++++++++++++++++++ > > drivers/event/sw/sw_evdev.c | 166 +++++++++++++++++++++++++++++++++++++++++ > > drivers/event/sw/sw_evdev.h | 5 ++ > > 3 files changed, 347 insertions(+) > > create mode 100644 drivers/event/sw/iq_ring.h > > > > diff --git a/drivers/event/sw/iq_ring.h b/drivers/event/sw/iq_ring.h > > new file mode 100644 > > index 0000000..d480d15 > > --- /dev/null > > +++ b/drivers/event/sw/iq_ring.h > > @@ -0,0 +1,176 @@ > > +/*- > > + * BSD LICENSE > > + * > > + * Copyright(c) 2016-2017 Intel Corporation. All rights reserved. > > + * > > + * Redistribution and use in source and binary forms, with or without > > + * modification, are permitted provided that the following conditions > > + * are met: > > + * > > + * * Redistributions of source code must retain the above copyright > > + * notice, this list of conditions and the following disclaimer. > > + * * Redistributions in binary form must reproduce the above copyright > > + * notice, this list of conditions and the following disclaimer in > > + * the documentation and/or other materials provided with the > > + * distribution. > > + * * Neither the name of Intel Corporation nor the names of its > > + * contributors may be used to endorse or promote products derived > > + * from this software without specific prior written permission. > > + * > > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > > + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > > + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > > + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > > + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > > + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > > + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > > + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > + */ > > + > > +/* > > + * Ring structure definitions used for the internal ring buffers of the > > + * SW eventdev implementation. These are designed for single-core use only. > > + */ > > Plan is to replace this file with generic rte_ring once Bruce's ring > rework[1] comes in master branch. Right ? > > [1] http://dpdk.org/ml/archives/dev/2017-March/061372.html > Yes, we hope to be able to leverage that rework in future. /Bruce