From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by dpdk.org (Postfix) with ESMTP id 735B3201 for ; Fri, 24 Nov 2017 21:55:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CRkIjW0/lZYIDKhLdcuLmGlG6s6QBVI0mmOBGfqffnw=; b=emLlz55UoGCUuAODyNiUX4ByfDxJpWt8ySbWLOo5IYQ96bxasbTrsICDnRcd3ag6iLkHDfOd5ECbqgNF9pH1J2jc3Gxn5v3SvTI/5N/NAF0t068xIWO7yEYDYfM3svwmVrB82bm7xeAKdP8R9qbrN19imSo8ZunUOd5iRpSQLqk= Received: from jerin (209.37.99.82) by CY1PR07MB2524.namprd07.prod.outlook.com (10.167.16.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Fri, 24 Nov 2017 20:55:36 +0000 Date: Sat, 25 Nov 2017 02:25:33 +0530 From: Jerin Jacob To: liang.j.ma@intel.com Cc: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, deepak.k.jain@intel.com, john.geary@intel.com Message-ID: <20171124205532.GA5197@jerin> References: <1511522632-139652-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: <1511522632-139652-1-git-send-email-liang.j.ma@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [209.37.99.82] X-ClientProxiedBy: CY1PR07CA0007.namprd07.prod.outlook.com (10.166.202.17) To CY1PR07MB2524.namprd07.prod.outlook.com (10.167.16.15) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 3:6r4S5+FCSriqZEG500QIIMiidrzrq07rP2wtVkOgBrFLaEpuSuvC2cKyG5IPOMWaMFHDQTjSkK8KJPC3ZJSxYfyEnFrfkO1uQ4h4h8+M5s3Wkd45CCiYmwt5p4d/q0b2vEzwQH8jUoNlNbsFi974knZO597nmE+UNlSZCW0tDFCe8LLergltRiGJUhZJHJ7wYr5CMB6dVrjZIgyQaL1cgmLG0/2eEA+nJXpeNkTY2ZyMb4+pinbLBfkDcczieh9t; 25:Omw/OJ4Nz469kSo7PXHj/lIaGamyr9CBakJPr1tu98HMhD7//+cdKCtWyBgmU56CS/X7+PeCf7ZCqSeSOVVEfaOLHxw54tqgT2mXOsM/JFzazgKSqzu9MeyajhxTOs7J8mgLnyXaRhohn86oDS/hzgb2ZhCBhYB5cossSNvL3eGlZvuMkB1WLifvDivazrGl8a19+ARYouqz9IOyYZj4rJtt+3eAc2ceIxpQsOkI4UDGxSwiGO43+1RzPntxH9VPpuvJl/42XWaJq/eK3A6tgMvRZ60LkI0TihpAlQ6EFH1LRwRtVDN83xCumqJ0HvrAQ42/tiA54tFNM6SSN+P0SQ==; 31:VOAFO/lBX6m+nN1H3uDjxgUvYlupxmHzrEPPOsdJwJTEw2U/+8T7v/CXK8GYJ8rgsA+pV9V3pFHIdpNiCDAesDWdL+AaGeVl3Joug4Ld4BoZ8qN56gwLSyG8iqNhF1Inl/LWzB+KumdMF0zjqBgrMbs1OweiQ+zI9VFNT8Tuy6XbRb/hT0jingoGBwJGN8aRWfKeOY+N/9f2xMrXuSF8Qjgxbm2Ssnb7IqLyuC9BaDQ= X-MS-TrafficTypeDiagnostic: CY1PR07MB2524: X-MS-Office365-Filtering-Correlation-Id: 78548e00-3c76-47c4-d35a-08d5337db6e0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 20:i+7ovHDgTe5jDz1x39SgAyyeMxBdYyfIp2C7jQPlRjNtkx3SItInZ4m3D/hHzkJ15e1MhBj+Al1seQX+oeWl/tIYHfrrH92FnVwNS6iaa61+6tcnqT+lRRspwTM8WRRX085iByskvBSiwTMnrft7U9m5qh4LfvqwoaXZNWe2c0b17EGsja8+ipokMtp0Typ515mJ2ADCpA2oKibwDB8v2xAvfSKd2fPCZGLsZjhEBYIdyAd2GUswHtVP/6MsmrygmTs61irQCrZ6UTKnIzv8xHHvDPTwY5U3e8w1Ka6rLI+LLci1whkGJp8EA1Gb8cJmYHKJ8i1nFfyLB9Hk5tEzdcopDwMe+ADcg5KgLB4YSj1PsF+G4soJHy3gUJ2IUTbdiiXVRdDdPpVTJUWGQMe89o6NdoqNwImc2o5TCqS7+nJ/ZR22fmxtNP7nhQ/eJDtsNdMMllyH4Xgn/ufuRMKenejFz1c4bbtw5ndj85of+j9j0uJWgZJm8VcQ5I2fOGdrGfRztq+cgoEePs7B6yeY+9fZ5JwB8CkYeB6vtjKQaZO576JMrrudaF4dRaIfQfhIF0VkOGfAXDJOuayEU8cL4nH1WFTKMPzA9coz0eziC98= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(3231022)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY1PR07MB2524; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 4:T05oB45Gr671E4P5tzM3r43NjJUxuNqI7SNknV0/vvrNDqND+lEm21RVPm/5/e4Q+xx9RCzTV75XEBRKjJRfxvyN+gPKv3Gnc/qU5CxsFRgWPu+JGRI6DoFrdTqO5I4GQZBFAlElpvS76LD7L376IaV0ymiID74YW+yHudbcOu3hvZttvP3ZCt7RQqMM67i8+PYjktk6A3hUFj2+bFqpFg0kBRtvWO4otZfjmK2PpXCBfPItG7d9YEYsfDVP3peIpyq5LTbhKku7K4EVoL8+ChgyxBtoGWceZxxoOco1oqmsVNhhfRfdaYTNRwPHQnp0FaC1QEOw4brfUtRckQUn57/xNyph2D62kZlKedsum58= X-Forefront-PRVS: 05015EB482 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(346002)(376002)(13464003)(189002)(199003)(6916009)(42882006)(68736007)(5660300001)(8676002)(316002)(105586002)(33716001)(25786009)(6306002)(76176999)(55016002)(9686003)(6496006)(2906002)(50986999)(53936002)(54356999)(58126008)(47776003)(97736004)(305945005)(2950100002)(6666003)(7736002)(81156014)(81166006)(66066001)(106356001)(16586007)(52116002)(8936002)(2351001)(229853002)(2361001)(4326008)(478600001)(50466002)(83506002)(72206003)(101416001)(6116002)(3846002)(189998001)(5890100001)(1076002)(23726003)(6246003)(347745004)(33656002)(53376002)(16526018)(18370500001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2524; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2524; 23:Fw+SK/PjSx+W72XfM0bO6rpyPrn9yHUEYOIXSLBsb?= =?us-ascii?Q?3EbC4fYLGVkJqqER5If/uKZ81Lj1rI9ZwIlIJJlF8MpDn0v0w6RsPH9L6wzF?= =?us-ascii?Q?Kc2f2w8nMAdeQRh/bLX/FOuY1j53GeObIZr//IdcBZ1OW6o5FEHrCl+nIsGR?= =?us-ascii?Q?J78iYJ3aDS06eCfakQII+Dft3fWZQWDf9heTinly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fSacaATJH4TesJzrNXWYWzJSUF4LHj+F5l+mxB+UXVXw=; 7:O/y/kFzM7EswUIdbgf3hkBXdT+Vy47X8fk04k8fnHSuFUF4frSZC/Z/zusxDILCFjz6JedobCfionA5RCz2pgbaL8SlEIEDJLlKjsw0iZlmUQlImaHPlCMOOWBrYNq73jNYaxm56e1QO/h8hz1yfzILR5R/qRMRC3Ebt1LSPV5ZxlQ5CTh6dmIDZqalRh3S9Pb8Xm5WG8bbTgrfVi4DhSoDJShhwr3qjCOQRWXkkoeZC9lWl73zEnPDmPVjtf5Lx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2017 20:55:36.8971 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78548e00-3c76-47c4-d35a-08d5337db6e0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2524 Subject: Re: [dpdk-dev] [RFC PATCH 0/7] RFC: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, 24 Nov 2017 20:55:39 -0000 -----Original Message----- > Date: Fri, 24 Nov 2017 11:23:45 +0000 > From: liang.j.ma@intel.com > 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 > Subject: [RFC PATCH 0/7] RFC:EventDev OPDL PMD > X-Mailer: git-send-email 2.7.5 > > From: Liang Ma Thanks Liang Ma for the RFC. > > 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. > > - For performance, the rte_event flow_id should not be updated once > packet is enqueued on RX. Some top-level comments, # How does application knows this PMD has above limitations? I think, We need to add more capability RTE_EVENT_DEV_CAP_* to depict these constraints. On the same note, I believe this PMD is "radically" different than other SW/HW PMD then anyway we cannot write the portable application using this PMD. So there is no point in abstracting it as eventdev PMD. Could you please work on the new capabilities are required to enable this PMD. If it needs more capability flags to express this PMD capability, we might have a different library for this as it defects the purpose of portable eventdev applications. # We should not add yet another "PMD" specific example application in example area like "examples/eventdev_pipeline_opdl_pmd". We are working on making examples/eventdev/pipeline_sw_pmd to make work on both HW and SW. # We should not add new PMD specific test cases in test/test/test_eventdev_opdl.c area.I think existing PMD specific test case can be moved to respective driver area, and it can do the self-test by passing some command line arguments to vdev. # Do you have relative performance number with exiting SW PMD? Meaning how much it improves for any specific use case WRT exiting SW PMD. That should a metric to define the need for new PMD. # There could be another SW driver from another vendor like ARM. So, I think, it is important to define the need for another SW PMD and how much limitation/new capabilities it needs to define to fit into the eventdev framework, Jerin > 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 (7): > 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 > event/opdl: update the build system to enable compilation of pmd > test/eventdev: opdl eventdev pmd unit test func and makefiles > examples/eventdev_pipeline_opdl: adding example > doc: add eventdev opdl pmd docuement and example usage document > > config/common_base | 6 + > doc/guides/eventdevs/index.rst | 1 + > doc/guides/eventdevs/opdl.rst | 162 +++ > .../sample_app_ug/eventdev_pipeline_opdl_pmd.rst | 128 +++ > doc/guides/sample_app_ug/index.rst | 1 + > drivers/event/Makefile | 1 + > drivers/event/opdl/Makefile | 65 ++ > drivers/event/opdl/opdl_evdev.c | 714 ++++++++++++ > drivers/event/opdl/opdl_evdev.h | 353 ++++++ > drivers/event/opdl/opdl_evdev_init.c | 945 ++++++++++++++++ > drivers/event/opdl/opdl_evdev_xstats.c | 205 ++++ > drivers/event/opdl/opdl_ring.c | 1170 ++++++++++++++++++++ > drivers/event/opdl/opdl_ring.h | 578 ++++++++++ > drivers/event/opdl/rte_pmd_evdev_opdl_version.map | 3 + > examples/eventdev_pipeline_opdl_pmd/Makefile | 49 + > examples/eventdev_pipeline_opdl_pmd/main.c | 766 +++++++++++++ > mk/rte.app.mk | 1 + > test/test/Makefile | 1 + > test/test/test_eventdev_opdl.c | 1089 ++++++++++++++++++ > 19 files changed, 6238 insertions(+) > create mode 100644 doc/guides/eventdevs/opdl.rst > create mode 100644 doc/guides/sample_app_ug/eventdev_pipeline_opdl_pmd.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/rte_pmd_evdev_opdl_version.map > create mode 100644 examples/eventdev_pipeline_opdl_pmd/Makefile > create mode 100644 examples/eventdev_pipeline_opdl_pmd/main.c > create mode 100644 test/test/test_eventdev_opdl.c > > -- > 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.