From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0061.outbound.protection.outlook.com [104.47.42.61]) by dpdk.org (Postfix) with ESMTP id 7AD772B99 for ; Mon, 3 Jul 2017 05:58:20 +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=0c+LghrHVnd8TnozjOxqH85UVIF6P7Is14iLWwu1/ck=; b=lbmKhjKTEwVsCXDZ4bAXLhoNGICJaJcsiG2FMwgg+Pd0cHFTJua2K4IbDhR+z9K1tMXg4u0CKXvjMga9U6M9bQ1E06aO3Q/rrmSL24fplEMKzHnO1ZGoSNXvnAv4S6q0twaLuxhI/xYXccWAO6049rPaO+hPIWyQu+xFZBcpToE= 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 BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Mon, 3 Jul 2017 03:58:15 +0000 Date: Mon, 3 Jul 2017 09:27:57 +0530 From: Jerin Jacob To: David Hunt Cc: dev@dpdk.org, harry.van.haaren@intel.com, Gage Eads , Bruce Richardson Message-ID: <20170703035755.GA6275@jerin> References: <1498751388-41571-2-git-send-email-david.hunt@intel.com> <1498830673-56759-1-git-send-email-david.hunt@intel.com> <1498830673-56759-2-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-2-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 BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ab25d77-1c9f-4d9b-c76a-08d4c1c7bc92 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:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:y23H5kaL9F172s1Mr0HYTdcCMZh4rp3BmcYePoChiPjt1ZtV8V0FMoBeDR/NFr3WnDQWwuOkrheZPvXshzF3M56jlbuxkVmyWNBCsm/9vN2UT8Hu+5WNx1gfTQI8PAuH28gfVjRsJtloj0XWNjo3CtUYyANeP+qN5keZLr1owurYiEvJDT0dc5QeIVwidg0KOJJ0D2ErSE54A9H7BsAcyziMRiVX+oVaRpaCs/TRKMHXe6gO4/l8USRo3FZ+UFIobvwiTLf4DHsS4PQtSGZ6xs/nJdc5B9R92sE/f22BemGuRRCULnJ3AddrbKPMFFccLKpb3PpLT9SLttFLv8NOl/tWpIKa0/h26HeT/qxXejsYoj+A08szS/IPfflfmW8UyxU806pwh9ryTzC2mzzdm8FAcFyLz2/flQpZjLgYeTzW8JInDr/HaxYf10G5wIacFUN5I8az5L0onnuqZhaZ/ZKWjyiQa8GJAsH9dT4mmjqko65yzQ56Q6Q9+tJzclWggooGuJlF8XIkWuphIC0RHjWsYK//l5Hsbd2mt/FKz9qkTQfNgqlOVqGJXTGzuGUgPujzBhmZHHKPxkqwM2e9FAx/o1PRDHEzkbUTvdFy7p+TrV9HrEelrPYsfZcC3lOTl9xo+JkoPq0e4pemD7IPJMWbddfvHmAgdeYYAsUbyaWYwk+puoa9yBuhsRgfTCY/5cx3luRX1+e3Gd0qJT6JrlCP5pwGlEMGQ/sUtcbeUgqV/8EYMoht/3cXsE+yC3lh X-MS-TrafficTypeDiagnostic: BLUPR0701MB1716: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 25:XndBq+7+VdQd/+vl44kDey8P3iZp9HIauOkJedqOIP7QNZXURK3HDdyYqPYybjPQkEjHDs8RsmM5FNH5Ht52mDEgBxRHvFbxj2XmdkyKUFE+QMXv12JhHPPGdKVWAs1RqzdO/XrYAcBHxm5SeW1Vspb/Yk5sX+r9rio2SumYKoa6wO+AbgepS92cIVnDY6taIyqTBdpQjNTjctgzsYhdTQ6AdhhBDmAz8zpHE8/Fx82Zdn6p4kzuXG/eHb0L8lSM/q8ehVcyGJX99vgD32h6gpzQDUKqkeZABPjuPJ5FKv8DdE0CncoZy1CGwbZb1vjtNkrspFy/+h+vMpzTgjaeLdq5VMpqBuKLVSwoFF5KuCAhR3dV4+wGLwgnqlcxKkGxanaRo9fonXjarxuY/hOmablOZiYk3OFzgktMt8Wavuo0LzCQJZ94V8298fSAHr8VdkvYZyCYkYXdaaK93oKJlmgVEJQQ9mmiVKYorK07urw/CvZ08QfxXu/ZOiQEH8cwwPmokH1JLWZgM4GUEfSL6L+JfJLJDvHidB9rBy59iEemvAF5MQn0/XtarRAob1LLpV5GqLLJTnGu9BMfw9EObUKobjRqE51llh0pn1WgltnxsLGQHY89fDXdceaynbrKhYaVBxQPS2O2dPw0ERksgl9pEyeh4hekOrkb9iKmAKw1OGnybiO5sg1m5zQZqsnQ5N+Ts0GAVD7Z/cEV391a/YABlNxzmf+geqc4rtcXesokhGR2cK1IRbqXIZDRn+lF6bB/0BR8bwF4UZT44AqgqYpReEVasVWGRm4PUoX2rnjk8Ns62z4MCSSrCp9akfHQ7HYjo3vctOP+/EMYsUmlmiwYJPT8QN8JzwPeTcGKOXm3Dx41TJvAEfg9mVpNcg89hj27fNMG3v2rC+0vES3OkNqCFZbmNiYziUyfMNoiYLc= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 31:yn0F1fR8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Rp5MCrJa4woNSNgkK43DyDlypnC8wpYuu4R4kqi1J+60N/6tmfJce2Sm5a6PPWv7HpJLBriSKibLZnzXh46HynhuAUeu98NPZmoJ1mYca/qF7r4iYeGXgEK26LK0SiVRtSFXc8cvI9skM5+x1DyBlfvsdWrYpUdYpbb4d/FroFEZUykAzPu4hTMVlVCCKWMhFMgDsjrZPjBC3Q1UrqvzUDDC2LREWxt0rJ75q7UYs8/45lsuj0V7pVEDCVdAPiFGk+OmaVOGE899eHYrI5zaZJO1ZMvv3mxzYJ0ZIfrg9kRaZq4bo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750)(167848164394848)(228905959029699)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(6041248)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 4:6QsYCsKTBVdBAxee4/qU+33i9U4S+xDG8CxJ3Sbi?= =?us-ascii?Q?r+K2UTV5E8vYRDyKnFTrIwA7XKaQkp71VgJSE/4E2y44yOqfn+2nfd/M5X7A?= =?us-ascii?Q?jhvCFlGjER9RatGabWZ2t1B8BBAvsx3WIvWsXo6eODAjIwHZimD/a9RTLgq+?= =?us-ascii?Q?epiL/FoH8puFKOsLB1/91JpDCXGbs4D887KyCthOt+jVtNa7nZ+2x8149UvV?= =?us-ascii?Q?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Vb6cS1?= =?us-ascii?Q?G+cLJBJMK9saR2JOZGwpbT1rtbtkZgJMXlkg0OmycqtBhdu4xrVchIyd+reO?= =?us-ascii?Q?NYm/kJUVm9Pu1hy/AhyeB3yZfvmbrYGIf4VTx4bqHy7Y8yLMdyVi5dRY39Ue?= =?us-ascii?Q?TpJ1PvhjIV4skUh9Wg/J0F64MbfHX8cnybhB8E1p1DqNLMZ6uJkLWVzwbhDu?= =?us-ascii?Q?svso52OhVj6mSKai6HQgO8c=3D?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39450400003)(39410400002)(39840400002)(39850400002)(57704003)(13464003)(47776003)(81166006)(5660300001)(3846002)(8676002)(6116002)(305945005)(33656002)(189998001)(83506001)(50466002)(23726003)(1076002)(2906002)(478600001)(54356999)(55016002)(6496005)(4326008)(53936002)(9686003)(110136004)(72206003)(42186005)(38730400002)(7736002)(50986999)(76176999)(4001350100001)(6246003)(54906002)(66066001)(2950100002)(6666003)(6916009)(42882006)(25786009)(33716001)(229853002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1716; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 23:UKA485evVX40JFq2cEDySgotLKkYymdGKeZchAv?= =?us-ascii?Q?sjN6sKEIJU10vRtzpRfzmyOpX9BTA/FeV/gh6riLKXdGbUW0U+nxOxOpX4sN?= =?us-ascii?Q?ROhCOL9a/quiwd8mpkrsV4jHh9LnYIkNIL7tBgkVeStiKrKEEi3xxEqPC1C9?= =?us-ascii?Q?YEectmdWxxS4wZifu7B4lyD0hz7VW5AH2lFtBZFKqiovAOgAZE6rRDtwTbp5?= =?us-ascii?Q?1kBVay/+RRM9Xy6tBdqc1TLdWyDZ/ZUtx1N5qqELZrnx9DmAim4oockZIPZZ?= =?us-ascii?Q?onojqM5R7hUUErBY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LoLL0N+BgwKplXXIABP1m9iFHEXP91xb4CXxFfehUWdUuk9ZAZTHHgC51eg?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 6:8GokfAA3r9tHAOvvDUBqftOGHMlpyzu+g8M9tTUD?= =?us-ascii?Q?oQj6cc4mDsjiEtj12DVVYNHyPPHH09nLph8sNx5uy7/gvHgMqcgSZ6eZaQe7?= =?us-ascii?Q?bhWnPMVlKiEz6hqlzxvTrMpT51ey1ySEEyezQQXuoyHLYuGZHB7hWO3QYlJR?= =?us-ascii?Q?odYd6BsiAFEOffsYCEvtY3ytXSIw5W13DtpomD2h61RTWL8MQ/EeiYxStxEV?= =?us-ascii?Q?C18X4nFWmOGromdeTpCvHG9ustCv8tcmpauD1pd2TCBKOL8N7hi0bS2NE6YF?= =?us-ascii?Q?9qax25VcsPPjqtmPbuBrdwP6nyo6ledT8/W8zBu0AXnqlA6o8RFDzrbvaAgz?= =?us-ascii?Q?QPRsa/zq6k6N3Zs0b5fb4KV/82b4kuDQd0WSK5FP1mls6jCKWxVbT38C4Mtg?= =?us-ascii?Q?OI2si05RQkKvNLEjCPYMf22Q2x7hgYfStCm5C+JArmN/dUYxGyERoqdGX4Mu?= =?us-ascii?Q?OMOum22QR1vZBPYkiLamMp4KTsC4LONPss7jUV1grIvNzV4w9EtQMrhXHmEG?= =?us-ascii?Q?e10Xyrj+E6spPoz1uutKmWd2Vw6fm628QhFk/XjOISJknBkYnkTo+QiYZcAA?= =?us-ascii?Q?o97wHIft2EfHqCMnRqHAcwVc8/i4BD/gsU52/hzHodUkWXi8Hi+vzU2SVjjz?= =?us-ascii?Q?m67bn0zvUYrLb6mxvnnTx2AlVVnBSFpkghO7EmGCmmvVzKjvqii9ZOn9ABNs?= =?us-ascii?Q?doXuAdPUkCgagvi0hNVtHyYm0LxbRn/GCR8H0RdIbmpFGmA4te8U2RJdtsjW?= =?us-ascii?Q?ZOkH4kn19E6BCQPn1RHeIdX/MnTpjbt2q0ID8muZxs+z1iwudRBN8+uPAJZB?= =?us-ascii?Q?fNsr22sjgpaun2I8Ki10LUoiQ1lhhX4Prs2HgjZ1ZRsOw6KdkK/azkRkQ3pZ?= =?us-ascii?Q?MuNSCDIi1f5g5U2FWbhOIIVVBQ2KTrlORKs4kCu41mdD4KweqvnuvjpKx1T7?= =?us-ascii?Q?L6dpABGckms1MU+nJpXl5A+dogd0UgXdaJ0NomHPHoxNqLVMxhVQ1KjEymRl?= =?us-ascii?Q?we8=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:7dU5Ygd7Y6H0WKYfYGovTZR5+EQ7NuN78SaNEnea66ttfZ1mh/5Kofy0mXcMV+826b9sm3nAXSU5A5LRM/5PNdnzkKno0xlGIpTkJYZjhyOr5rhveuZaVSeusWmZU7cqoX6fF9m8DP6XOAk95xtVq47fg9XRCCwF/dMPKEmHy23a0YHtn96Dnnj7wLfRXnmN1J84m1tzdmm6m6m7c21Wkw2S5idyNFaqi5ROj8S7YMpNjHWQCaZhFTsKDBP6L5HPEwXnhwIrUUt4aJqh+/CyQDSu+D4gyUxmfdfGyEEHGIAzqhJFBt+KRBNAdUGKsHDACsUEhyF8cKYeEu4D+CnoaTSCPL2u60ZbTH3msY5rloDbI3pKH7CHSExEj0PPMNO+eT0MEMlxebr7dAojXfl0cxn0kjrDD8fCNbj9eX0IJQGVTbWqRKbbp4rYl2vsptCOWl1sE3uMkJQREQrDUCoLIK3jVT9riOwkviJQhV6bdeqgWZDNLOVx5tbkJkZsck77; 24:m4H7fWK0i+PMqLSdV0WZLmgaRGKBWWfpzVYcr4kcotnboxngAjRRHW9mV5/OHkRwazAuFDKfAN53yw9fUu2Jf4NWTsjFtZLOUoWiCev9qXk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:PspneTMAQAsCV42Q185nujKI6TuAX0Qk87OjoAsPZ0u01D26/onfzUsQYbDoFSfRntUwlYYDesQ0Yr5YG+fkrcPe1UD3Psq3ZDXDu4eDBzrSHil6JDB8y1GV9DrXqMJBUqwx/TO1eo34mzEIPYnvUl/AqETI8vUXmoxPVXwy1owXHUEdnIj6B0kFEjp1bKu9/dv1GlEfR91ROuYJVysTQE4xmrfu5IlOLuJFeSKQrZ1WI1KPnr2YZIQM8iEEqBtk16QUZvEOwm23LMqcDjvKuPpGpPnvlZKV6tDb605Oa0O10v8up+0/RS5YRUr6qCTkepBhhRINpdOa73EAf4dxnc4W2YpYbWb8WNfMObT+LQEZXaEdrwrvo1q0DFiEcbvQqSp27NgWkWP2I7DAde3GUXgyMp/gd4qGJ+WnLdlhshM8jD4WK1ow4Pq9/STQ8XCyG6ziA+jCRks39x7BXv/dteVBX9N7RUPRM5+QS5xcLXvGESImGRLCUVbMn6Lh1E2Lsg2NkpYL8XtO9LoxDn6E0TDUwOI5TIo4qXF99s5WLKdQ09Z/YjwdruogIRjEIJyPwTyuyLQY9Z6fyqfZbh8avACdifB/crsYBNF9TJMha/mmEeQHyRQu8lOGczvIYoli+l/8MvEig5BsxV3Hla0mq7UJNZKipBs4e7/b5vrVYIuDc2aKHSpxFRtxFRaZ/9sQWOkZ1DYcxlqHlp06/dFc+TWt0TOqlZRdmeJsvrDLxi4nvxx/+aMxaGLotU49TzustOkmWCa8ZNiSQDXoyRl0jH6ThIPgT/nKpOT4J0Z9sWY= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 03:58:15.0351 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: Re: [dpdk-dev] [PATCH v5 1/3] examples/eventdev_pipeline: added sample app 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: Mon, 03 Jul 2017 03:58:21 -0000 -----Original Message----- > > From: Harry van Haaren > > This commit adds a sample app for the eventdev library. > The app has been tested with DPDK 17.05-rc2, hence this > release (or later) is recommended. > > The sample app showcases a pipeline processing use-case, > with event scheduling and processing defined per stage. > The application receives traffic as normal, with each > packet traversing the pipeline. Once the packet has > been processed by each of the pipeline stages, it is > transmitted again. > > The app provides a framework to utilize cores for a single > role or multiple roles. Examples of roles are the RX core, > TX core, Scheduling core (in the case of the event/sw PMD), > and worker cores. > > Various flags are available to configure numbers of stages, > cycles of work at each stage, type of scheduling, number of > worker cores, queue depths etc. For a full explaination, > please refer to the documentation. A few comments on bugs and "to avoid the future rework on base code when HW PMD is introduced". As we agreed, We will keep the functionality intact to provide an application to test ethdev + eventdev with _SW PMD_ for 17.08 > --- > examples/Makefile | 2 + > examples/eventdev_pipeline/Makefile | 49 ++ > examples/eventdev_pipeline/main.c | 999 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 1050 insertions(+) > create mode 100644 examples/eventdev_pipeline/Makefile > create mode 100644 examples/eventdev_pipeline/main.c Do we need to update the MAINTAINERS file? > > diff --git a/examples/Makefile b/examples/Makefile > index 6298626..a6dcc2b 100644 > --- a/examples/Makefile > +++ b/examples/Makefile > @@ -100,4 +100,6 @@ $(info vm_power_manager requires libvirt >= 0.9.3) > endif > endif > > +DIRS-y += eventdev_pipeline Can you change to eventdev_pipeline_sw_pmd to emphasis on the scope. We will rename to eventdev_pipeline once it working effectively on both SW and HW PMD with ethdev. > + > include $(RTE_SDK)/mk/rte.extsubdir.mk > diff --git a/examples/eventdev_pipeline/Makefile b/examples/eventdev_pipeline/Makefile > new file mode 100644 > index 0000000..4c26e15 > --- /dev/null > +++ b/examples/eventdev_pipeline/Makefile > @@ -0,0 +1,49 @@ > +# BSD LICENSE > +# > +# Copyright(c) 2016 Intel Corporation. All rights reserved. 2016-2017 > +# > +# Redistribution and use in source and binary forms, with or without > +# modification, are permitted provided that the following conditions > +# are met: > +# > + > +static unsigned int active_cores; > +static unsigned int num_workers; > +static long num_packets = (1L << 25); /* do ~32M packets */ > +static unsigned int num_fids = 512; > +static unsigned int num_stages = 1; > +static unsigned int worker_cq_depth = 16; > +static int queue_type = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY; > +static int16_t next_qid[MAX_NUM_STAGES+1] = {-1}; > +static int16_t qid[MAX_NUM_STAGES] = {-1}; > +static int worker_cycles; > +static int enable_queue_priorities; > + > +struct prod_data { > + uint8_t dev_id; > + uint8_t port_id; > + int32_t qid; > + unsigned int num_nic_ports; > +} __rte_cache_aligned; > + > +struct cons_data { > + uint8_t dev_id; > + uint8_t port_id; > +} __rte_cache_aligned; > + > +static struct prod_data prod_data; > +static struct cons_data cons_data; > + > +struct worker_data { > + uint8_t dev_id; > + uint8_t port_id; > +} __rte_cache_aligned; > + > +static unsigned int *enqueue_cnt; > +static unsigned int *dequeue_cnt; Not been consumed. Remove it. > + > +static volatile int done; > +static int quiet; > +static int dump_dev; > +static int dump_dev_signal; > + > +static uint32_t rx_lock; > +static uint32_t tx_lock; > +static uint32_t sched_lock; > +static bool rx_single; > +static bool tx_single; > +static bool sched_single; > + > +static unsigned int rx_core[MAX_NUM_CORE]; > +static unsigned int tx_core[MAX_NUM_CORE]; > +static unsigned int sched_core[MAX_NUM_CORE]; > +static unsigned int worker_core[MAX_NUM_CORE]; > + > +static struct rte_eth_dev_tx_buffer *tx_buf[RTE_MAX_ETHPORTS]; Could you please remove this global variable and group under a structure for "command line parsing specific" and "fast path specific"(anything comes in producer(), worker() and consumer()). And please allocate "fast path specific" structure variable from huge page area. So that we can easily add new parsing and fastpath variable in future. > + > +static int > +consumer(void) > +{ > + const uint64_t freq_khz = rte_get_timer_hz() / 1000; > + struct rte_event packets[BATCH_SIZE]; > + > + static uint64_t received; > + static uint64_t last_pkts; > + static uint64_t last_time; > + static uint64_t start_time; > + unsigned int i, j; > + uint8_t dev_id = cons_data.dev_id; > + uint8_t port_id = cons_data.port_id; > + > + uint16_t n = rte_event_dequeue_burst(dev_id, port_id, > + packets, RTE_DIM(packets), 0); > + > + if (n == 0) { > + for (j = 0; j < rte_eth_dev_count(); j++) > + rte_eth_tx_buffer_flush(j, 0, tx_buf[j]); > + return 0; > + } > + if (start_time == 0) > + last_time = start_time = rte_get_timer_cycles(); > + > + received += n; > + for (i = 0; i < n; i++) { > + uint8_t outport = packets[i].mbuf->port; > + rte_eth_tx_buffer(outport, 0, tx_buf[outport], > + packets[i].mbuf); > + } > + > + /* Print out mpps every 1<22 packets */ > + if (!quiet && received >= last_pkts + (1<<22)) { > + const uint64_t now = rte_get_timer_cycles(); > + const uint64_t total_ms = (now - start_time) / freq_khz; > + const uint64_t delta_ms = (now - last_time) / freq_khz; > + uint64_t delta_pkts = received - last_pkts; > + > + printf("# consumer RX=%"PRIu64", time %"PRIu64 "ms, " > + "avg %.3f mpps [current %.3f mpps]\n", > + received, > + total_ms, > + received / (total_ms * 1000.0), > + delta_pkts / (delta_ms * 1000.0)); > + last_pkts = received; > + last_time = now; > + } > + > + dequeue_cnt[0] += n; Not really used. > + > + num_packets -= n; > + if (num_packets <= 0) > + done = 1; > + > + return 0; > +} > + > +static int > +producer(void) > +{ > + static uint8_t eth_port; > + struct rte_mbuf *mbufs[BATCH_SIZE+2]; > + struct rte_event ev[BATCH_SIZE+2]; > + uint32_t i, num_ports = prod_data.num_nic_ports; > + int32_t qid = prod_data.qid; > + uint8_t dev_id = prod_data.dev_id; > + uint8_t port_id = prod_data.port_id; > + uint32_t prio_idx = 0; > + > + const uint16_t nb_rx = rte_eth_rx_burst(eth_port, 0, mbufs, BATCH_SIZE); > + if (++eth_port == num_ports) > + eth_port = 0; > + if (nb_rx == 0) { > + rte_pause(); > + return 0; > + } > + > + 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 = queue_type; > + ev[i].queue_id = qid; > + 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]; > + RTE_SET_USED(prio_idx); > + } > + > + 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]); > + } > + enqueue_cnt[0] += nb_tx; Not really used. > + > + return 0; > +} > + > + > +static inline void > +work(struct rte_mbuf *m) > +{ > + struct ether_hdr *eth; > + struct ether_addr addr; > + > + /* change mac addresses on packet (to use mbuf data) */ > + eth = rte_pktmbuf_mtod(m, struct ether_hdr *); > + ether_addr_copy(ð->d_addr, &addr); > + ether_addr_copy(ð->s_addr, ð->d_addr); > + ether_addr_copy(&addr, ð->s_addr); If it is even number of stages(say 2), Will mac swap be negated? as we are swapping on each stage NOT in consumer? > + > + /* do a number of cycles of work per packet */ > + volatile uint64_t start_tsc = rte_rdtsc(); > + while (rte_rdtsc() < start_tsc + worker_cycles) > + rte_pause(); > +} > + > +static int > +worker(void *arg) Looks good. > +/* > + * Initializes a given port using global settings and with the RX buffers > + * coming from the mbuf_pool passed as a parameter. > + */ > +static inline int > +port_init(uint8_t port, struct rte_mempool *mbuf_pool) Looks good. > +static int > +setup_eventdev(struct prod_data *prod_data, > + struct cons_data *cons_data, > + struct worker_data *worker_data) > +{ > + /* final queue for sending to TX core */ > + if (rte_event_queue_setup(dev_id, i, &tx_q_conf) < 0) { > + printf("%d: error creating qid %d\n", __LINE__, i); > + return -1; > + } > + tx_queue.queue_id = i; > + tx_queue.priority = RTE_EVENT_DEV_PRIORITY_HIGHEST; > + > + if (wkr_p_conf.dequeue_depth > config.nb_event_port_dequeue_depth) > + tx_p_conf.dequeue_depth = config.nb_event_port_dequeue_depth; s/tx_p_conf.dequeue_depth/wkr_p_conf.dequeue_depth > + if (wkr_p_conf.dequeue_depth > config.nb_event_port_enqueue_depth) s/wkr_p_conf.dequeue_depth/wkr_p_conf.enqueue_depth > + tx_p_conf.enqueue_depth = config.nb_event_port_enqueue_depth; s/tx_p_conf.enqueue_depth/wkr_p_conf.enqueue_depth > + > + /* set up one port per worker, linking to all stage queues */ > + for (i = 0; i < num_workers; i++) { > + struct worker_data *w = &worker_data[i]; > + w->dev_id = dev_id; > + if (rte_event_port_setup(dev_id, i, &wkr_p_conf) < 0) { > + printf("Error setting up port %d\n", i); > + return -1; > + } > + > + uint32_t s; > + for (s = 0; s < num_stages; s++) { > + if (rte_event_port_link(dev_id, i, > + &worker_queues[s].queue_id, > + &worker_queues[s].priority, > + 1) != 1) { > + printf("%d: error creating link for port %d\n", > + __LINE__, i); > + return -1; > + } > + } > + w->port_id = i; > + } > + > + if (tx_p_conf.dequeue_depth > config.nb_event_port_dequeue_depth) > + tx_p_conf.dequeue_depth = config.nb_event_port_dequeue_depth; > + if (tx_p_conf.dequeue_depth > config.nb_event_port_enqueue_depth) s/dequeue_depth/enqueue_depth > + tx_p_conf.enqueue_depth = config.nb_event_port_enqueue_depth; > + > + /* port for consumer, linked to TX queue */ > + if (rte_event_port_setup(dev_id, i, &tx_p_conf) < 0) { > + printf("Error setting up port %d\n", i); > + return -1; > + } > + if (rte_event_port_link(dev_id, i, &tx_queue.queue_id, > + &tx_queue.priority, 1) != 1) { > + printf("%d: error creating link for port %d\n", > + __LINE__, i); > + return -1; > + } > + /* port for producer, no links */ > + struct rte_event_port_conf rx_p_conf = { > + .dequeue_depth = 8, > + .enqueue_depth = 8, > + .new_event_threshold = 1200, > + }; > + > + if (rx_p_conf.dequeue_depth > config.nb_event_port_dequeue_depth) > + rx_p_conf.dequeue_depth = config.nb_event_port_dequeue_depth; > + if (rx_p_conf.dequeue_depth > config.nb_event_port_enqueue_depth) s/dequeue_depth/enqueue_depth > + rx_p_conf.enqueue_depth = config.nb_event_port_enqueue_depth; > + > + if (rte_event_port_setup(dev_id, i + 1, &rx_p_conf) < 0) { > + printf("Error setting up port %d\n", i); > + return -1; > + } > + > + *prod_data = (struct prod_data){.dev_id = dev_id, > + .port_id = i + 1, > + .qid = qid[0] }; > + *cons_data = (struct cons_data){.dev_id = dev_id, > + .port_id = i }; > + > + enqueue_cnt = rte_calloc(0, > + RTE_CACHE_LINE_SIZE/(sizeof(enqueue_cnt[0])), > + sizeof(enqueue_cnt[0]), 0); > + dequeue_cnt = rte_calloc(0, > + RTE_CACHE_LINE_SIZE/(sizeof(dequeue_cnt[0])), > + sizeof(dequeue_cnt[0]), 0); Debugging stuff. Remove this > + > + if (rte_event_dev_start(dev_id) < 0) { > + printf("Error starting eventdev\n"); > + return -1; > + } > + > + return dev_id; > +} > + > +static void > +signal_handler(int signum) > +{ > + if (done) > + rte_exit(1, "Exiting on signal %d\n", signum); > + if (signum == SIGINT || signum == SIGTERM) { > + printf("\n\nSignal %d received, preparing to exit...\n", > + signum); > + done = 1; > + } > + if (signum == SIGTSTP) > + rte_event_dev_dump(0, stdout); > +} > + > +int > +main(int argc, char **argv) > +{ > + struct worker_data *worker_data; > + unsigned int num_ports; > + int lcore_id; > + int err; > + > + signal(SIGINT, signal_handler); > + signal(SIGTERM, signal_handler); > + signal(SIGTSTP, signal_handler); > + > + if (!quiet) { > + printf("\nPort Workload distribution:\n"); > + uint32_t i; > + uint64_t tot_pkts = 0; > + uint64_t pkts_per_wkr[RTE_MAX_LCORE] = {0}; > + for (i = 0; i < num_workers; i++) { > + char statname[64]; > + snprintf(statname, sizeof(statname), "port_%u_rx", > + worker_data[i].port_id); > + pkts_per_wkr[i] = rte_event_dev_xstats_by_name_get( > + dev_id, statname, NULL); As discussed, Check the the given xstat supported on the PMD first. > + tot_pkts += pkts_per_wkr[i]; > + } > + for (i = 0; i < num_workers; i++) { > + float pc = pkts_per_wkr[i] * 100 / > + ((float)tot_pkts); > + printf("worker %i :\t%.1f %% (%"PRIu64" pkts)\n", > + i, pc, pkts_per_wkr[i]); > + } > + > + } > + > + return 0; > +} With above changes, Jerin Jacob > -- > 2.7.4 >