From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0082.outbound.protection.outlook.com [104.47.42.82]) by dpdk.org (Postfix) with ESMTP id 581DE2C39 for ; Sun, 2 Jul 2017 14:08:43 +0200 (CEST) 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=p6hd+kddLvCIzR/nl6YHJmo3y0gB/3ojhjPSvZy3SFs=; b=j4FWpNexhUPLpu0pQfvbWbZzCktjQ7JbpgeboSA/m5Fk5qzwxzx9w1IckNkeB1JAhjauHdGULNX7kMJOLzIIO24jnf0vhqNsp92J4fAfxysCSNPqfbGXakEm8U0tY2sFUmIlDaKH952fp25dPvdh2osr359K9DtBu2vwNRife6I= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (106.201.113.26) by CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Sun, 2 Jul 2017 12:08:39 +0000 Date: Sun, 2 Jul 2017 17:38:18 +0530 From: Jerin Jacob To: David Hunt Cc: dev@dpdk.org, harry.van.haaren@intel.com Message-ID: <20170702120816.GA10027@jerin> References: <1498751388-41571-2-git-send-email-david.hunt@intel.com> <1498830673-56759-1-git-send-email-david.hunt@intel.com> <1498830673-56759-4-git-send-email-david.hunt@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1498830673-56759-4-git-send-email-david.hunt@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [106.201.113.26] X-ClientProxiedBy: PN1PR01CA0080.INDPRD01.PROD.OUTLOOK.COM (10.174.144.148) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fe07899-ce53-477e-0351-08d4c1431427 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 3:iuuASe7VtHzhYlSIwG/fVvbhZoi95lnzQdMTGI75aN0f/lAwkH2KCK2vSh0X3VnRHr9DM4IHfgKu1b7WrTKX3u+AD8IMxjVNWhKsXNtniREzuCJ9m64JXCYDxmiv9kyPDy8E4OTpFddYhwve1gZx9SSMg4U/6hTEdYYslGgoeA/dFffjx7fykk9xEB0hr6gluL/FHPfiwdExrQRjODaiq5kb9X3IaVSywsRA84aB79CSVfCuPzQ6+s+6tfwiRx4w/2MlHqDY0ParCuYutUELlX8OTYt13BEW8Glw7NGJsUAoeHTsm5S8IAp5XnOr0KLip9HsLjNJYKhU3A5/GcixHpJwMjPiNHwnD7ZjlrRUyaWNIXu6XtutiPOWI0ghkdXhasNjyj9DT0mNoukjfYiaRacpoMnbemTgNuMeTzrOOYxCeHJUg8Usdj3CSe0sU7h8ux31Xdf1g0zRTq2Rnw9EiLBGTJ1E6R4rrZY/03yJadIBeESM7+IYLGBrTH/NYT7qLWo9e0/mX6vXiMMl8+fKu74oWQ7DuBKqu14pi+18uXB0ecuHlU1do3EmZz4K+DdMGe7fD6WeU127Ibxe0EJUmPmyr4ytXElf2Cn+iMGvdsv4vosArOgl8w2qF0A0G01CD2FnLDG1wnWkUx8KlVPVkBFGHO58xkuwbWmksZIx4QK6Q9RtOqrknWKOx+NxehhrnTTHEkewxsrARmCgceZRyNbO/RdoNyKG2Lw1GJ904aE= X-MS-TrafficTypeDiagnostic: CY1PR0701MB1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aDQv8PPtQNjtEiKuJQ37Kk4uaQgMlXcSd789R4dpj4c4OrxcxBJsiDrUN/vBHmoCfHOVoI7OcIo29X8gtqUuqglEJh5D8ZhOMribQV2c2vamJFalDA831gzCivVoGoYMMztKtrOB9gl014llgu4yT+2JHWUY4S22Pk74eV8uK5VuL1fMmueZ6Bf/9suQ+qyUAeAn1dqlwlbdRKsvTCMwDf9G5tKGF+M20cAWh0a1AVl2SIp2dLW//ACyEXY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(278428928389397)(236129657087228)(148574349560750)(167848164394848)(158140799945019)(228905959029699)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 4:eL2j2Dv2ZBVqEKas+OxmoJ34nok3qYlrYOr4bgTO?= =?us-ascii?Q?s6N3QmCnRVvnOK1XGwEWPmcCUtGNC402ETKseIMAP3nvwESKGZ3FrE0XiUr8?= =?us-ascii?Q?RrE27RrgKGytCmiOtElIiySzmfslEUZbi+bKwWvzk+wqXvLI00ZzqTv88m/1?= =?us-ascii?Q?3BvVyUxjLWLn+MYgPZ1CntJcAFFAU/uYqrksCQQO8d+9go7QGmsMy8/dKKOX?= =?us-ascii?Q?M3/3IFFCwFweIaINJ4HB27kkBW6qMiKjh/69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q?xyRkKSIB9/j+CmZ0nNEl4N+AFTodjdyDStU3XYuGtyWmQt+9jlst52U++Auy?= =?us-ascii?Q?PLaCglP4V7MckbM+zzpD40IlFcW8UOW+PqxPIh10jO91Hqesa7IRPgiYOrlO?= =?us-ascii?Q?HAZU+lnpeH3IkKLzKI8JG3WrGmEJdeUnSheSyNdc0KOzBBih3rDX8uNm/Vad?= =?us-ascii?Q?zC8/hLo0ht+VV9hXfWLsBL0fMcHJxxHnPnRH75UAQ8bIZ56HcnQjultqjiOu?= =?us-ascii?Q?tK/th4KF6FWnCGfW1B6ZCgKJeNoJ0cW7WXVW2xk6omEKG29lvgqEFbZjWfPc?= =?us-ascii?Q?s6k89YHZkQ=3D=3D?= X-Forefront-PRVS: 03569407CC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(13464003)(51234002)(5009440100003)(2906002)(1076002)(23726003)(72206003)(6116002)(3846002)(66066001)(42186005)(478600001)(33656002)(25786009)(47776003)(83506001)(42882006)(55016002)(6666003)(6916009)(8676002)(50466002)(33716001)(110136004)(53936002)(6246003)(305945005)(50986999)(6496005)(54356999)(76176999)(2950100002)(6306002)(9686003)(5660300001)(966005)(229853002)(7736002)(4001350100001)(38730400002)(189998001)(81166006)(53376002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 23:oI7ohwqPNv6FX90yHJ0av1irNrdf4xIrVRuauXp?= =?us-ascii?Q?dSzNPTKxkbtOQ+Y5nVs3SfFS9JrxMf3zmvqTU/R+b6g/KCaIy7EgO5wScyE4?= =?us-ascii?Q?p2Mhv1LXJMDjArAHeap6MRbec9tOLLKMALYOecaFdQY3Os7Bmj7BhIporfiF?= =?us-ascii?Q?SBFEYSBIepNLE1HqnVcTirbEIlTu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qNv+tDJQ+WchNTKZ8OCUIeAOsM1v5IyBWVkFggGlaUfzAisKWzhsXy1D358PDSaAenAxQz+KE2FE3q/kDOTHYE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 7:85v+sq17gWkDWwmbAJen5gOnQ1fyIZpgFyxFMCc0SGzVpgr3gWxZvSxJYCarZseyMArah1pUNOFbvBEQI601UssdnFwfhTYYPMBLgdlwZYJpqYjMiOb9ccgtm7G19HYmhx/+BrPLAfz4e335Wyw7O0dXp3VEyZyTaGM5btEJJINbua5vj1rU9Gkgk2pzDVSK1ItsmrCLXd/X9rpRchI9qaGY2eT+VL543t4TzABQ1AeDUPKPSRapouqbOV6ISrtMSmoFU/wpy347W2eO6I6EwytPwZC65QG5vQXaEvYTmQwBTAqLYFeeSNYm4hS94O2uLcZPMDcZC3733eWi2VbD4yUFqd2D3RSFbTuyX0ERAJMakQ9fT4YxQMkX1kU5qQ0PRkaEOtHWY+SU4r5ZlkFVnwOWZPjigemhqWD1tXRdd1jq5GPzWQbd2B0d+HILH/36gDUGMno9LcTl+p67qF1MMtzt3wMY30afsjdV/98rMOKA74z3A5Us5W4WLGT3ygTsryVpAe5U8rBDRQlsSZfp041yjmRxMuG5ebURkpEZeY1g2mK+bIMACGABZwPeFeM7PU1H4HFdJz8OkQ737rLg+Kp6zpY1waaEqmKlvZzaJzHZ6o8oaJEOCc2JXs8mppxAcSa5xa+k3DG96Ep5inkc8rd/MEleHY7Foj694qH2rtP6sJJ5m+1IXkx5S6yqn5QELlyHulnzV7eulUtFupNsLLp6dU4lebMVSNsZTRasRAXrAXdExMPNvixHswzqjA+xhX/byG36mN7s6gWrEwQEk5oDgx3a3Kf7iR8+rr2q4XE= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2017 12:08:39.5215 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: Re: [dpdk-dev] [PATCH v5 3/3] doc: add eventdev library to programmers guide 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: Sun, 02 Jul 2017 12:08:44 -0000 -----Original Message----- > Date: Fri, 30 Jun 2017 14:51:13 +0100 > From: David Hunt > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com > Subject: [PATCH v5 3/3] doc: add eventdev library to programmers guide > X-Mailer: git-send-email 2.7.4 > > From: Harry van Haaren > > This commit adds an entry in the programmers guide > explaining the eventdev library. > > The rte_event struct, queues and ports are explained. > An API walktrough of a simple two stage atomic pipeline > provides the reader with a step by step overview of the > expected usage of the Eventdev API. > > Signed-off-by: Harry van Haaren Thanks for document. Overall it looks good. A few comments below. > --- Snip > + The eventdev framework is provided as a DPDK library, allowing > +applications to use it if they wish, but not require its usage. > + > +The goal of this library is to enable applications to build processing > +pipelines where the load balancing and scheduling is handled by the eventdev. Adding the differences between polling and event driver model will be useful. I propose to change the above two paragraphs and add more detailed text for the use case. Something like below, ----------Start-------------------- The eventdev framework introduces the event driven programming model. In a polling model, lcores poll ethdev ports and associated Rx queues directly to look for a packet. By contrast in an event driven model, lcores call the scheduler that selects packets for them based on programmer-specified criteria. The Eventdev library adds support for an event driven programming model, which offers applications automatic multicore scaling, dynamic load balancing, pipelining, packet ingress order maintenance and synchronization services to simplify application packet processing. By introducing an event driven programming model, DPDK can support both polling and event driven programming models for packet processing, and applications are free to choose whatever model (or combination of the two) best suits their needs. -----------End-------------------- > +Step-by-step instructions of the eventdev design is available in the `API > +Walk-through`_ section later in this document. > + > +Event struct > +------------ > + > +The eventdev API represents each event with a generic struct, which contains a > +payload and metadata required for scheduling by an eventdev. The > +``rte_event`` struct is a 16 byte C structure, defined in > +``libs/librte_eventdev/rte_eventdev.h``. > + Snip > +Event Payload > +~~~~~~~~~~~~~ > + > +The rte_event struct contains a union for payload, allowing flexibility in what > +the actual event being scheduled is. The payload is a union of the following: > + > +* ``uint64_t u64`` > +* ``void *event_ptr`` > +* ``struct rte_mbuf *mbuf`` > + > +These three items in a union occupy the same 64 bits at the end of the rte_event > +structure. The application can utilize the 64 bits directly by accessing the > +u64 variable, while the event_ptr and mbuf are provided as convenience > +variables. For example the mbuf pointer in the union can used to schedule a > +DPDK packet. > + > +Queues > +~~~~~~ > + > +A queue is a logical "stage" of a packet processing graph, where each stage > +has a specified scheduling type. The application configures each queue for a > +specific type of scheduling, and just enqueues all events to the eventdev. > +The Eventdev API supports the following scheduling types per queue: IMO, The above definition fits nicely if the queue is NOT with RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES. I think, We can take the queue definition from header file. http://dpdk.org/browse/next/dpdk-next-eventdev/tree/lib/librte_eventdev/rte_eventdev.h#n113 and tell about the RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES and non RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES capability queues here. > + > +* Atomic > +* Ordered > +* Parallel > + > +Atomic, Ordered and Parallel are load-balanced scheduling types: the output > +of the queue can be spread out over multiple CPU cores. > + > +Atomic scheduling on a queue ensures that a single flow is not present on two > +different CPU cores at the same time. Ordered allows sending all flows to any > +core, but the scheduler must ensure that on egress the packets are returned to We can emphasize of when reordering happens ie "On downstream queue enqueue" > +ingress order. Parallel allows sending all flows to all CPU cores, without any > +re-ordering guarantees. > + > +Single Link Flag > +^^^^^^^^^^^^^^^^ > + > +There is a SINGLE_LINK flag which allows an application to indicate that only > +one port will be connected to a queue. Queues configured with the single-link > +flag follow a FIFO like structure, maintaining ordering but it is only capable > +of being linked to a single port (see below for port and queue linking details). > + > + > +Ports > +~~~~~ > + > +Ports are the points of contact between worker cores and the eventdev. The > +general use-case will see one CPU core using one port to enqueue and dequeue > +events from an eventdev. Ports are linked to queues in order to retrieve events > +from those queues (more details in `Linking Queues and Ports`_ below). > + > + > +API Walk-through > +---------------- > + > +This section will introduce the reader to the eventdev API, showing how to > +create and configure an eventdev and use it for a two-stage atomic pipeline > +with a single core for TX. The diagram below shows the final state of the > +application after this walk-through: > + > +.. _figure_eventdev-usage1: > + > +.. figure:: img/eventdev_usage.* > + > + Sample eventdev usage, with RX, two atomic stages and a single-link to TX. > + > + > +A high level overview of the setup steps are: > + > +* rte_event_dev_configure() > +* rte_event_queue_setup() > +* rte_event_port_setup() > +* rte_event_port_link() > +* rte_event_dev_start() > + Good. > +Ingress of New Events > +~~~~~~~~~~~~~~~~~~~~~ > + > +Now that the eventdev is set up, and ready to receive events, the RX core must > +enqueue some events into the system for it to schedule. The events to be > +scheduled are ordinary DPDK packets, received from an eth_rx_burst() as normal. > +The following code shows how those packets can be enqueued into the eventdev: > + > +.. code-block:: c > + > + const uint16_t nb_rx = rte_eth_rx_burst(eth_port, 0, mbufs, BATCH_SIZE); > + > + for (i = 0; i < nb_rx; i++) { > + ev[i].flow_id = mbufs[i]->hash.rss; > + ev[i].op = RTE_EVENT_OP_NEW; > + ev[i].sched_type = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY; > + ev[i].queue_id = 0; > + ev[i].event_type = RTE_EVENT_TYPE_CPU; ev[i].event_type = RTE_EVENT_TYPE_ETHDEV; > + ev[i].sub_event_type = 0; > + ev[i].priority = RTE_EVENT_DEV_PRIORITY_NORMAL; > + ev[i].mbuf = mbufs[i]; > + } > + > + const int nb_tx = rte_event_enqueue_burst(dev_id, port_id, ev, nb_rx); > + if (nb_tx != nb_rx) { > + for(i = nb_tx; i < nb_rx; i++) > + rte_pktmbuf_free(mbufs[i]); > + } > + > +Forwarding of Events > +~~~~~~~~~~~~~~~~~~~~ > + > +Now that the RX core has injected events, there is work to be done by the > +workers. Note that each worker will dequeue as many events as it can in a burst, > +process each one individually, and then burst the packets back into the > +eventdev. > + > +The worker can lookup the events source from ``event.queue_id``, which should > +indicate to the worker what workload needs to be performed on the event. > +Once done, the worker can update the ``event.queue_id`` to a new value, to send > +the event to the next stage in the pipeline. > + > +.. code-block:: c > + > + int timeout = 0; > + struct rte_event events[BATCH_SIZE]; > + uint16_t nb_rx = rte_event_dequeue_burst(dev_id, worker_port_id, events, BATCH_SIZE, timeout); > + > + for (i = 0; i < nb_rx; i++) { > + /* process mbuf using events[i].queue_id as pipeline stage */ > + struct rte_mbuf *mbuf = events[i].mbuf; > + /* Send event to next stage in pipeline */ > + events[i].queue_id++; > + } > + > + uint16_t nb_tx = rte_event_enqueue_burst(dev_id, port_id, events, nb_rx); > + > + > +Egress of Events > +~~~~~~~~~~~~~~~~ > + > +Finally, when the packet is ready for egress or needs to be dropped, we need > +to inform the eventdev that the packet is no longer being handled by the > +application. This can be done by calling dequeue() or dequeue_burst(), which > +indicates that the previous burst of packets is no longer in use by the > +application. Perfect. > + > +.. code-block:: c > + > + struct rte_event events[BATCH_SIZE]; > + uint16_t n = rte_event_dequeue_burst(dev_id, port_id, events, BATCH_SIZE, 0); > + /* burst #1 : now tx or use the packets */ > + n = rte_event_dequeue_burst(dev_id, port_id, events, BATCH_SIZE, 0); > + /* burst #1 is now no longer valid to use in the application, as > + the eventdev has dropped any locks or released re-ordered packets */ This above code snippet is bit confusing(dequeue followed by dequeue). How about changing it in following theme http://dpdk.org/browse/next/dpdk-next-eventdev/tree/lib/librte_eventdev/rte_eventdev.h#n226 > + > +Summary > +------- > + > +The eventdev library allows an application to easily schedule events as it > +requires, either using a run-to-completion or pipeline processing model. The > +queues and ports abstract the logical functionality of an eventdev, providing > +the application with a generic method to schedule events. With the flexible > +PMD infrastructure applications benefit of improvements in existing eventdevs > +and additions of new ones without modification. With above changes: Acked-by: Jerin Jacob