From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0061.outbound.protection.outlook.com [104.47.34.61]) by dpdk.org (Postfix) with ESMTP id 498281BA82 for ; Wed, 6 Jun 2018 01:45:17 +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:X-MS-Exchange-SenderADCheck; bh=RnrFAj3KXiq6HDFuxKJH0mDSJYPjRqoGNH+1VWhzgzY=; b=Gq9qwaBp9iPdmuEcM4KOzH5zuSih9FyAyhQOqHGQtVQPBbGwYoER7+wYpqPCuHU13lHnOgB8t4v3wbmPR6x4OZ0JjU8yn+kWeFyNgLlVdT+n3694U7ExQVUU1YWsrQUNtssDY4LKfyx48MB47VwSzPInfUzF/j43tg2aGxK1sZc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.120.91.188) by SN2PR07MB2527.namprd07.prod.outlook.com (2603:10b6:804:6::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.13; Tue, 5 Jun 2018 23:45:14 +0000 Date: Wed, 6 Jun 2018 05:15:05 +0530 From: Jerin Jacob To: Honnappa Nagarahalli Cc: "Van Haaren, Harry" , "dev@dpdk.org" Message-ID: <20180605234503.GA5277@jerin> References: <1527798222-1873-1-git-send-email-honnappa.nagarahalli@arm.com> <20180604044217.GA2901@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [106.120.91.188] X-ClientProxiedBy: HK0PR03CA0029.apcprd03.prod.outlook.com (2603:1096:203:2f::17) To SN2PR07MB2527.namprd07.prod.outlook.com (2603:10b6:804:6::27) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2527; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 3:fKTvkpgNqmM1evfqdGTgE7dhpBLpRvqfyXoIe7/Em/b1O+VikxNQ/+KWyWXhzARV2CC3cO+urFQSQ7kQmcsp6CQJyLLjvOUdsTE9e5R+1p1XEeJG7c9cv4/vomatY727lW5k3s73j+j9mrVW6Nu1/KBZYrLwXYgrwF7e5BI0+OR91tjGi4dDAQqCeGmWlWH7nNC06viyyyXWvxlr/ED2iInpXbSD2yjXH8Tg3RKi2E384uSUOpnV/zuxh5Dh7WTH; 25:D7j1YhG1dK0FElOx1wwmHkGeKIYT9h4Rpbq7s54OYH3MX0RAXmVI3zv6QlRyCcGqS750M81lOaI1KfN4GF/Iy6C861c2dzuVgnCHxpeM14wbshatT6tLpCAAahNQYo3GKUUgul/RDEGYfvwdjR9DgdSH6BVMQ7mXlQSLPGunaQQv7eKPbCz3HyZPQnm28C5AXmM5NMKcDUIiJN+EPoBNQP0e0E6LXKEQ00593m0LBbeSZ8BJ2jrPFEFKNTdQRzUP2ZQzyUN4hwgDpfkfuoyuAItlgv5XkD1igVtFCknI421X4mfbodJsA/ayj5Mt9w5QAEnKziUgmbwX5iJJmaNGPg==; 31:a3pRLDXk6yiploZUqPeOlbKSxT+sXG5SJAwoR8WFoIqrY8wgnVoX1/7UUz3jt47zsWDYXJ6I0FUaw9LZ0FKv3bVdwegqs9lZvBmbgSMCCiF+d/haNYBGnCXEXh3jqhkYcJNFyXI/3m37vdQ5Ejbdjg5dpTxtdMJtwuA1Rwk6n50LCIsq7V5C212yAj1hu/dTpcmqC6Pj633IDUYOkqFkEglv+WV8+ojkSe6rWGbKOBo= X-MS-TrafficTypeDiagnostic: SN2PR07MB2527: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 20:xW5nBPfU3xPVvgf4fhKFsS4a9wsneO1OyV5QeUmrnEWGtdOkQYe52Y48qjf/fjVUV3kvQ0JfHvg2po9KxDFE3pw4xS2VqWIZWTW72rC1zizvaj9oKY+/bt9ch0+7abtI6IeyydDSleIkOLkVmZY1tEZQf3ZV+y+/oZWzAGbu1xlKym+czglpwBwsb5/Nf/jDRR7AUIEnSBVcsIaYQb2aKshNWtmdg84EqitN83KyQh+XBy5/BangkOTIIWLjQJ/+8PAyM7N4Aowfj3/j74b4Q2ChTigRglLnlrqPFZWJPvRtCs6lLyxRBFRxdBNtBj9Zap6pg7NSjBU3EZstuBRG2vB49T/KE7oAF0vpOkvFdwGubWS31RJFhVRAfnWclNDmsPjn9NOQHvvRF/MNt/bVOLRb44ICcvC6oJiv1ikFdqtxLvxAVwyjvUUyKSF826b+YebbudHHuwNimv1RnblV9huR5/TUzKku1CdNHmZPyDFtoGKh6f1DOc8PKWAeo5dOdDETUJUhZ8EWu/xrgS5BVfuslcXoXpWKCCKcuMp/jNWLd2jONJWbExADYNdgGs/UK6I+AcQN8jm3Qyuu+cTdxDzAi+TnvcxMLP3yhFi/Xws= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:SN2PR07MB2527; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2527; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 4:aLV0/YMlLHPp/qHLvhQipJ8ojnNBO5yelG2ZTkLz5+pdIRMGG730WG5/Th4+zQj42RQhNJEK5zRR9VyBiFoL7dOVD5c2+B3NVoNGRl8OaQfPDcEeutZzG2ictLDuHh1KhuN5jjosWYOkWG3jqynYY9wj6ok8oRqjVx14jbez/oIDq34pNa2bTh7PQaeUB09sDF98jKX4Wq15+7858XFRxerbf8KltYOxHYYTNFcl/0levQinxZvCIP+HM9xNAXJQnNqt9lO6X2Jy4Qh2n0voxsFDdEaKXD7iu5U8wd3u3vbCkfGG8IDJPxHxg3YQQsYeE1UXbvnS5LhikKvrKw/8QFfs1yfMOcZJR6mdB11X2fk= X-Forefront-PRVS: 0694C54398 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(366004)(39860400002)(346002)(39380400002)(13464003)(40434004)(199004)(189003)(23726003)(16526019)(11346002)(58126008)(305945005)(7736002)(72206003)(97736004)(3846002)(6116002)(9686003)(966005)(53936002)(25786009)(106356001)(6306002)(478600001)(1076002)(76176011)(105586002)(4326008)(93886005)(6246003)(33716001)(66066001)(53376002)(33896004)(55016002)(47776003)(50466002)(16586007)(5660300001)(59450400001)(486006)(956004)(8676002)(6916009)(476003)(81166006)(2906002)(44832011)(68736007)(6666003)(386003)(54906003)(446003)(42882007)(81156014)(53546011)(33656002)(186003)(26005)(229853002)(6496006)(5890100001)(52116002)(8936002)(316002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2527; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2527; 23:XY34b1tyhvigI1t9fuy8xE/WV18t0JNtjWUdDB5+X?= =?us-ascii?Q?QdlG5wHz3Oh17W99azgiZgvNJf+Yg6tJhcfW17F51omvjMEmtjP/IHobL6H3?= =?us-ascii?Q?UpmRfh7IY8HE0i3ZIQLk+tAi2Xybdv1uZP32OVzKVbJTWvGCN4kb2eLKI7ut?= =?us-ascii?Q?rFd59n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yXEfbwL52LFzGvDbP3c?= =?us-ascii?Q?vD1gPXlL/KduA3zIGJ7BynftQbxz3RqvyKWDSoYnMxLVLK6u24AgUEEmdide?= =?us-ascii?Q?UmbQIH2IdqER9oWDV70jWJTPkG3qDf3yEQos3n00bveR9dxkKZQyk6MemEpo?= =?us-ascii?Q?VenteKFAfIWu4sYo7fyGbz1cyWngrQagvMGBdAQ5006MjX+kcCxUyG4WMIy3?= =?us-ascii?Q?fRAs9gH4oHZqdK1bC9rLtIIJU9qRyH6hmoJSJcfbii0psdQgmtvlN03qpFSG?= =?us-ascii?Q?TH8zg5sSUQf7SMfTxOe++ykBUzqqvoDumOu3NBU96cP1M+9yo/rcdhTiDa4q?= =?us-ascii?Q?ePmvH66Cn8XrroJqxnei//R1Xf2YSXutsmEbCIMbzXyz1nL5agYhyFv6WM/z?= =?us-ascii?Q?U4kZ6VYywkhbFVL03OvnTbDQ0Oe7iSNDXKie8Z6c9TSdbUR5B+1EH56zif+7?= =?us-ascii?Q?VQw8phyBDJr+biqiR83UeAChecihvgGEiQZ3/uK3XnU/hBKO5PcbVZM?= X-Microsoft-Antispam-Message-Info: Niok1DorOq6TPLx5jZau1IV/DbNlS1wDui+1+LyeMR/FNrwI1rjmCQ7W0HHRdgdSJoewQjCdUppEM8XNKFhoMajdHYLlfaT2ZjbUTtbR7xErWMudocuVWzpsUNr06jiifklth+Bj3Gcx8Hly0euWJ+7t8iIWGVJUv0TR+bJ6PkMwZb9dh7VFOcK5Ty9JdsVG X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 6:HztIWhUoxEwSNhVpdSmOAsS/1GtBBgQQHzs2mnIlPiZZsvI8JJFRn1Rx+n5WKmQqJ9yiVprmwmW8a+qyoUsDGfDouGtifnvgxG4yx//YU12NlrBAHTSbMCPNEARR50rkB/WyeBcgiLg5RjBll8BeqDqsRskdeI3v2t2/sy6Xm39lcsb5zN6uYff985q/O74uhofZEbhSQuXDBt2GpRdTAXl9KljXzFSj1RD80qZMqIWh5wEFXtCTrxNro7YROJw1rCLYH+GemB3/yr7Vapq0oGSyRcHu5om1VpaTbalgZxrA+DstS/Ae6p7eFMQOLQJ9B3CbmJvB87mtTz8qO3geSuWQh+a3AP2R4FybwXGzJ8Jp3gKlcXy2EMB4g9wjtPhJKBOmSDzVxcLoaGS1YkwNjYOducUE+eQ42EVvcPaKYwlVHfXaC09CmSxhKPj+ipH//3OVGHHNsDy8CFyKelx9eA==; 5:nsF5vXeu2O2l8zoslL+2N9inQY+Di9/tXco1YoqwvIEfhm29goyKzv8sch0ayofulCpLFSD6YMUuXFEAZpfzmodPReNBVz2pOTqy4uaOVc2tJGFoNMY/8btGn7u/6fVw0CoOVlgwjXA8MqoGyfERNBH5dOBMiIirnBqeaEjo52A=; 24:j8mvrwgocREtrIfUbPcMaY4RyeYldUIGgUgwWC9/dr9Wn8Eu/wt3gksN91GaZKqKZ/eDxlgQx3PnnmavPGL2P2J0TYBhQv1BgUruJc9LHHU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 7:t/K4Qdbb864a6KCSpfBEMf6P0HwS6uuujlK9MxxlUHw3Oy9tTr10+BrX7BrI+tw7KV9QeJzUXmK+jemKQuNJ4lyfNRmY/4pvfn++SWivnXpz6SjD7IzoYG2fyDr7gtH9dkq1z6RuT6pxX1VvYdt4G5kznM2TXE463LujgleXxWbEQPjJIuSw8o69mJjr4MkFYrm23DDvaZYZKYboFl2+aWCpaSDEuj+VqOAbZtuTOUo5/IkD8ly6N0pP61weQZZo X-MS-Office365-Filtering-Correlation-Id: 50cf8d8f-ce12-45cb-745c-08d5cb3e6344 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2018 23:45:14.5228 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50cf8d8f-ce12-45cb-745c-08d5cb3e6344 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2527 Subject: Re: [dpdk-dev] [PATCH] doc/event: improve eventdev library documentation 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: Tue, 05 Jun 2018 23:45:19 -0000 -----Original Message----- > Date: Tue, 5 Jun 2018 20:32:39 +0000 > From: Honnappa Nagarahalli > To: "Van Haaren, Harry" , Jerin Jacob > > CC: "dev@dpdk.org" > Subject: RE: [PATCH] doc/event: improve eventdev library documentation > > > > -----Original Message----- > From: Van Haaren, Harry > Sent: Tuesday, June 5, 2018 11:31 AM > To: Jerin Jacob ; Honnappa Nagarahalli > Cc: dev@dpdk.org > Subject: RE: [PATCH] doc/event: improve eventdev library documentation > > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Monday, June 4, 2018 5:42 AM > > To: Honnappa Nagarahalli > > Cc: dev@dpdk.org; Van Haaren, Harry > > Subject: Re: [PATCH] doc/event: improve eventdev library documentation > > > > -----Original Message----- > > > Date: Thu, 31 May 2018 15:23:42 -0500 > > > From: Honnappa Nagarahalli > > > To: jerin.jacob@caviumnetworks.com > > > CC: dev@dpdk.org, Honnappa Nagarahalli > > > > > > Subject: [PATCH] doc/event: improve eventdev library documentation > > > X-Mailer: git-send-email 2.7.4 > > > > > > Add small amount of additional code, use consistent variable names > > > across code blocks, change the image to represent queues and CPU > > > cores intuitively. These help improve the eventdev library > > > documentation. > > > > > > Signed-off-by: Honnappa Nagarahalli > > > Reviewed-by: Gavin Hu > > > --- > > > > Changes looks good to me. > > > > Adding Harry for this review as he is the original author of this file. > > Thanks Jerin, > > >> uint16_t nb_rx = rte_event_dequeue_burst(dev_id, worker_port_id1, > >> events, BATCH_SIZE, timeout); > > why is the worker port variable named "worker_port_id1"? Previously it was just worker_port_id. > > I think just worker_port_id makes more sense, perhaps update the 2 occurances of id1 ? > > Will change in V2 > > With that you have my > Acked-by: Harry van Haaren > > > > > > doc/guides/prog_guide/eventdev.rst | 55 +- > > > doc/guides/prog_guide/img/eventdev_usage.svg | 1518 > > > +++++++++------------ > > ----- > > > 2 files changed, 570 insertions(+), 1003 deletions(-) > > > > > > diff --git a/doc/guides/prog_guide/eventdev.rst > > b/doc/guides/prog_guide/eventdev.rst > > > index ce19997..0203d9e 100644 > > > --- a/doc/guides/prog_guide/eventdev.rst > > > +++ b/doc/guides/prog_guide/eventdev.rst > > > @@ -1,5 +1,6 @@ > > > .. SPDX-License-Identifier: BSD-3-Clause > > > Copyright(c) 2017 Intel Corporation. > > > + Copyright(c) 2018 Arm Limited. > > > > > > Event Device Library > > > ==================== > > > @@ -129,7 +130,7 @@ 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 > > > +with one core each for RX and TX. The diagram below shows the final > > > +state > > of the > > > > I think, we can mention the usage of RX and TX core are API > > illustration purpose only, In the real case, it is abstracted using > > Eventdev - Ethdev adapters to hide the difference between various > > eventdev capabilities to Rx or Tx the packets. > > or something on similar lines. > > > > I think we should leave it as is currently, the code under the section 'Ingress of New Events' is tied into RX core. I think the API walk-through section as a whole has to change to introduce the usage of adaptors. We already have Rx adapter documentation at http://dpdk.org/doc/guides/prog_guide/event_ethernet_rx_adapter.html My concern is reader gets confused about Rx core and think That way to send the packets in eventdev from ethdev. I think, it will help reader if give pointers about adapter here and mention the Rx and Tx core usage as API illustration purpose only to clarify the existing architecture. > > > > > > > > > > Egress of Events > > > diff --git a/doc/guides/prog_guide/img/eventdev_usage.svg > > b/doc/guides/prog_guide/img/eventdev_usage.svg > > > index 7765649..b0792dc 100644 > > > --- a/doc/guides/prog_guide/img/eventdev_usage.svg > > > +++ b/doc/guides/prog_guide/img/eventdev_usage.svg > > > @@ -1,994 +1,546 @@ > > > > > > > License is missing > > > > see doc/guides/prog_guide/img/architecture-overview.svg file as reference. > > > > With above changes: > > Will add in V2 > > > > > Acked-by: Jerin Jacob > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.