From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BEC8E1D7 for ; Fri, 15 Dec 2017 12:50:06 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Dec 2017 03:50:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,404,1508828400"; d="scan'208";a="12077129" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 15 Dec 2017 03:50:03 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id vBFBo3bb015820; Fri, 15 Dec 2017 11:50:03 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id vBFBo3PG008860; Fri, 15 Dec 2017 11:50:03 GMT Received: (from lma25@localhost) by sivswdev01.ir.intel.com with LOCAL id vBFBo3PV008856; Fri, 15 Dec 2017 11:50:03 GMT Date: Fri, 15 Dec 2017 11:50:03 +0000 From: "Ma, Liang" To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, deepak.k.jain@intel.com, john.geary@intel.com, peter.mccarthy@intel.com, seanbh@gmail.com Message-ID: <20171215115002.GA1173@sivswdev01.ir.intel.com> References: <1513337189-137661-1-git-send-email-liang.j.ma@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1513337189-137661-1-git-send-email-liang.j.ma@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) Subject: Re: [dpdk-dev] [RFC v2 PATCH 0/8] event: eventdev OPDL PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 11:50:07 -0000 ChangeLog [v2] 1. merge the opdl eventdev unit test code into opdl pmd. 2. propose three new capability capability flags for overall eventdev. 3. remove the opdl pmd example code. 4. remove the opdl pmd example doc. On 15 Dec 11:26, Liang Ma wrote: > The OPDL (Ordered Packet Distribution Library) eventdev is a specific > implementation of the eventdev API. It is particularly suited to packet > processing workloads that have high throughput and low latency > requirements. All packets follow the same path through the device. > The order which packets follow is determinted by the order in which > queues are set up. Packets are left on the ring until they are transmitted. > As a result packets do not go out of order. > > Features: > > The OPDL eventdev implements a subset of features of the eventdev API; > > Queues > * Atomic > * Ordered (Parallel is supported as parallel is a subset of Ordered) > * Single-Link > > Ports > * Load balanced (for Atomic, Ordered, Parallel queues) > * Single Link (for single-link queues) > > Single Port Queue > > It is possible to create a Single Port Queue > RTE_EVENT_QUEUE_CFG_SINGLE_LINK. Packets dequeued from this queue do > not need to be re-enqueued (as is the case with an ordered queue). The > purpose of this queue is to allow for asynchronous handling of packets in > the middle of a pipeline. Ordered queues in the middle of a pipeline > cannot delete packets. > > > Queue Dependencies > > As stated the order in which packets travel through queues is static in > nature. They go through the queues in the order the queues are setup at > initialisation rte_event_queue_setup(). For example if an application > sets up 3 queues, Q0, Q1, Q2 and has 3 assoicated ports P0, P1, P2 and > P3 then packets must be > > * Enqueued onto Q0 (typically through P0), then > > * Dequeued from Q0 (typically through P1), then > > * Enqueued onto Q1 (also through P1), then > > * Dequeued from Q2 (typically through P2), then > > * Enqueued onto Q3 (also through P2), then > > * Dequeued from Q3 (typically through P3) and then transmitted on the > relevant eth port > > > Limitations > > The opdl implementation has a number of limitations. These limitations are > due to the static nature of the underlying queues. It is because of this > that the implementation can achieve such high throughput and low latency > > The following list is a comprehensive outline of the what is supported and > the limitations / restrictions imposed by the opdl pmd > > - The order in which packets moved between queues is static and fixed > (dynamic scheduling is not supported). > > - NEW, RELEASE op type are not explicitly supported. RX (first enqueue) > implicitly adds NEW event types, and TX (last dequeue) implicitly does > RELEASE event types. > > - All packets follow the same path through device queues. > > - Flows within queues are NOT supported. > > - Event priority is NOT supported. > > - Once the device is stopped all inflight events are lost. Applications should > clear all inflight events before stopping it. > > - Each port can only be associated with one queue. > > - Each queue can have multiple ports associated with it. > > - Each worker core has to dequeue the maximum burst size for that port. > > > Reference > General concept of event driven programming model > [http://dpdk.org/doc/guides/eventdevs/index.html] > > Original Ordered Pipeline Design slides > [https://dpdksummit.com/Archive/pdf/2017Asia/DPDK-China2017-Ma-OPDL.pdf] > > > Liang Ma (8): > event/opdl: add the opdl ring infrastructure library > event/opdl: add the opdl pmd header and init helper function > event/opdl: add the opdl pmd main body and xstats helper function > eventdev/opdl: opdl eventdev pmd unit test function > lib/librte_eventdev: extend the eventdev capability flags > event/*: apply the three new capability flags for sw/dppa2/octeontx > event/opdl: update the build system to enable compilation > doc: add eventdev opdl pmd docuement > > config/common_base | 6 + > doc/guides/eventdevs/index.rst | 1 + > doc/guides/eventdevs/opdl.rst | 162 +++ > drivers/event/Makefile | 1 + > drivers/event/dpaa2/dpaa2_eventdev.c | 5 +- > drivers/event/octeontx/ssovf_evdev.c | 5 +- > drivers/event/opdl/Makefile | 66 ++ > drivers/event/opdl/opdl_evdev.c | 744 +++++++++++++ > drivers/event/opdl/opdl_evdev.h | 354 ++++++ > drivers/event/opdl/opdl_evdev_init.c | 951 ++++++++++++++++ > drivers/event/opdl/opdl_evdev_xstats.c | 205 ++++ > drivers/event/opdl/opdl_ring.c | 1232 +++++++++++++++++++++ > drivers/event/opdl/opdl_ring.h | 601 ++++++++++ > drivers/event/opdl/opdl_test.c | 1079 ++++++++++++++++++ > drivers/event/opdl/rte_pmd_evdev_opdl_version.map | 3 + > drivers/event/sw/sw_evdev.c | 5 +- > lib/librte_eventdev/rte_eventdev.h | 22 + > mk/rte.app.mk | 1 + > 18 files changed, 5440 insertions(+), 3 deletions(-) > create mode 100644 doc/guides/eventdevs/opdl.rst > create mode 100644 drivers/event/opdl/Makefile > create mode 100644 drivers/event/opdl/opdl_evdev.c > create mode 100644 drivers/event/opdl/opdl_evdev.h > create mode 100644 drivers/event/opdl/opdl_evdev_init.c > create mode 100644 drivers/event/opdl/opdl_evdev_xstats.c > create mode 100644 drivers/event/opdl/opdl_ring.c > create mode 100644 drivers/event/opdl/opdl_ring.h > create mode 100644 drivers/event/opdl/opdl_test.c > create mode 100644 drivers/event/opdl/rte_pmd_evdev_opdl_version.map > > -- > 2.7.5 > > -------------------------------------------------------------- > Intel Research and Development Ireland Limited > Registered in Ireland > Registered Office: Collinstown Industrial Park, Leixlip, County Kildare > Registered Number: 308263 > > > This e-mail and any attachments may contain confidential material for the sole > use of the intended recipient(s). Any review or distribution by others is > strictly prohibited. If you are not the intended recipient, please contact the > sender and delete all copies.