From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0063.outbound.protection.outlook.com [104.47.38.63]) by dpdk.org (Postfix) with ESMTP id F40622B89 for ; Thu, 7 Dec 2017 21:38:17 +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=9xsNKHmd7o/ifIZQQJKB7sgpjVnTgoT2jyXeEMykkSY=; b=dQ3iNto/6qlIq8GmowHDPHpunUJ8Rtw/5hmlBKFb8hqejH/l8FlrxPBXT2+104ZvkkHiuDobdL2xfEMlgEJL/FtZJeRN7Fg5lcjOyLTtGUtYJex18CmkeP83gPew2WEk/YOUgW4kdsGBVqHij6RXIGVLcO6KM2XKN1VTRg2ajFA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 7 Dec 2017 20:38:12 +0000 From: Pavan Nikhilesh To: gage.eads@intel.com, jerin.jacobkollanukkaran@cavium.com, harry.van.haaren@intel.com, nikhil.rao@intel.com, hemant.agrawal@nxp.com, liang.j.ma@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Fri, 8 Dec 2017 02:06:52 +0530 Message-Id: <20171207203705.25020-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PS1PR0601CA0101.apcprd06.prod.outlook.com (10.170.176.155) To DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bf3a169c-3393-4fdb-e85b-08d53db2713a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603304); SRVR:DM5PR07MB3468; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 3:5RHNzOISaJuOnAOaYKzoHw37GvXLHPbMS5McGZEi71CLXfVU196Hb7CPUapqKrmPoCVCVAVEsBwH/twQYF5fTMF+kyMHbm/31p9s+emAsUK+2wkJ637pu2yVVvPcvBqxBcBms09cxj0cJywIiSJkCVS3wwvicoal+NbTQYdxnsaKRS5Y/nKXPj1a39J8PzkwJ6iXsFfusdJXqHe6NjbknHu38rBYumDPLy1V9tCD/uUf4eh+xN1U6DFA9Os6uLJJ; 25:+pfA0gZFGPkjJDT8nJSPhhG+WVK20M4ECmogFOLwhPrfyXqEgegKSbKY/V0I9rssgnAGNPecEijJ9twzPAoXP1JwWzDPZ78bFEMKDOkjOzDb0lsqCmPcsrd0eUy4j1gpuebIfEGCbT6f47fXq5QAacpTPv+Z/VSWz1bAcc5yAkhzivliAFnGe9aFbayM8dzBBtVh7pUHJ1U86vaHpliO1scBXz7GNM7KjJoxhxnVpga2FO+GJ3gn1KZ7LfnLgP6BthM+1RvK09qWnwJA8ziiW42yLq3SzCiZeFeZDeBY0LhCX21o5X36QGVL67RwW5dudvMt+3KAq4qIZ2r6GsaLbg==; 31:1RMp/VjzLlKNI11HjLLnp8729r1iJLnVfZZNHQmWooqcjitS2KKBmFAQZtHkVuQ4xfJckZFiJKMT+ygmweaN0LDTGP77WpmdYBPZUlpuqclpgl593e0+IFpOqRJ/Ru4dt0auDMNksOmtIMupxV/zCiPk504qk8KZNYplqEfpxuCsLXuiK2em+hQAsQibsKFTNqJBf4STGR9p8AQv9yC9Y2yEYHs2M8e9mdYNUpKBzCE= X-MS-TrafficTypeDiagnostic: DM5PR07MB3468: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 20:2gXSECoocaiM1pDhYMvVYS2+EVlvF7dMeNPqk2P4YGmtBr/FmJBhQ9OiAo+oKPxWYfgIsval1Oc301qLl2Ivk4rc5S69IK9R3OKNcSEBnqjjc++7hk6nh45EQfRGiwD+H5NFE8uNbWm9oE84zyL2SYaZthL+ZXd/f8aaOCdSlZKpyYzY+yCfzmGSYgxeCi9YP7Tf84OuUluLiFDxLtmpBG6XA4ZwLlnhgAvtprS3ZrlbiKE+Q3eUtmbFwvGSkjDzSLlHlrHG7vwvUJBfA15I3/y0ik2XAaLBd4PLmhdtgoiU1uzLhMOguw0VVglr+S/DzXlK43fRS6uFP2U07isPFXJ9YoGFGacNW2TJRgjPvJ1iv0LaRNv7Aq7eAKpOHmXx+hQTcvQMMwRRaiO3o0YF6YNl9GMnnbT1MIgxCvPC+CxXMXBnAQpBcv/anODA0JVZRasG0ft1dxceP98YO1ceF9mLmeZ0eSoxWJgptnkmCYetUMCrCnXzXGZPinhlC13PzGtisZcbxmaBi1BZ5ovssdZ6sgbyDlqH5g2SN+S9s7o3dM569Xg5cdLFikn3iVBmgnhSdtKs2aqdhSo4MYW9d3qAcwNVIrunL5L/RJwA+Lc=; 4:yP515KY0v9UiPW4xF1lErS4PF61TCAeVg/4AN3ETpXRNZCN1Sa4G/S8Gwqm7y53RQjAwqrEmhymFobFXqtCJj1jEkncOHFGX1SSyfYGOjPCEnv9wfWavs2mQ70r5bLCG2v4fw+fn5fU85VkRysGk+OcJggAWytlMWMcahTWoS3MXUaG2sZ829+SSUzsTjdoubkMuYS5DWBsnIngRr5hFZBE0qoSANCtd0IQtjFbdXCpSJIK7h6IrXiW261CwGp8D/8o9XEZVPOqqzclYseVDYA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(3002001)(10201501046)(3231022)(6041248)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(201708071742011); SRVR:DM5PR07MB3468; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3468; X-Forefront-PRVS: 05143A8241 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(366004)(346002)(199004)(189003)(6666003)(8676002)(42882006)(2906002)(50226002)(5009440100003)(305945005)(81156014)(8936002)(97736004)(5660300001)(101416001)(33646002)(478600001)(7736002)(81166006)(68736007)(107886003)(4326008)(25786009)(16526018)(50466002)(16586007)(48376002)(106356001)(6506006)(6486002)(6116002)(105586002)(3846002)(51416003)(47776003)(72206003)(52116002)(8656006)(316002)(66066001)(1076002)(53936002)(6512007)(36756003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3468; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3468; 23:BUk0iYTSkwCh0Xp9YXgDgUkUzY7n8TDteR7VcTeCs?= =?us-ascii?Q?/Ojf0Hcl66MT7/1CM4r1f3EeXTzRwNsZXPvIx7CW33WX7VnoEDb5z0jdFgbc?= =?us-ascii?Q?q/ahyNysE0/RKt/SlIoh19XR4G9yk7J8Ytd0g9ZebhUyiUYm2nSGvEa0CusX?= =?us-ascii?Q?9xllKaj+KXUa/3/M8u1OjRNDUEJwJDcpDYhgcAwuiTsQSV7Ofs4zLiUAR3u3?= =?us-ascii?Q?JFAZEyG8K2vt/nHnHlQ3JUYchTmipzc0JB6u/6cBN3G8xyEg8mZZLdDXq//I?= =?us-ascii?Q?bcMRX7bEqoSjvclEqiC6HLIwiW0uswdmAxeKSdAFPSL0jkUaL1YdRGtskhcz?= =?us-ascii?Q?FFgT7m+6rLusAdCeCKLw0fgquYOp3VFRX0a9bjeKWV1K7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WC3iUFW8hw2y8ms2yR7qj186GJYnuecbUIDyjOQEi6M73HWYXghp8E5WpCmekED3FKtmUqP2KA12sJ8qtoyOuuhzgd7wJMqpI/FBGeuDOvoXbHHmsiORXCbHV/czci24Sc/z3KelxMaJHXQGDDyzCgOPZsCPlvxQgvf4WjmHB9BwKjuTf8iSHdld2VxcMIi6iobnHhRCAHuMgLnikpuwFmMV59R87WECa13t2t6+0/BkyJXR3+ihUBE9tZ/Ostc=; 5:MnJ8yWvqioFbD85DIiZuOw3HSTZ0KDd9OZq8jPUf/49pG1J810Y6lNbpFZjqvuCq1seLxE2CVFzd0nCKrcaRVy1rHkK11uw4iiXqqDX8WQ1RIFCd/oS2CrXUyLWvVWc6b3zVmlfkAy02+iHw5Zc6LisVtLDqmPDlp6MIBV4FmOY=; 24:+l2gBnf0VfaMyODC7RFMHv6X8ma7v894q5Bko27iG0p59n6hOaaJSI6GOg9ro9VDUhSs/0Nb0x+YyrmoxajqOtGvs68WaLmzWlxftDNQd1g=; 7:vJScB1VFcp7D7fKWYb4ZhdQNT/mnzl/aVa8LmqSPfQm5RdUW+EZyU1Q7Ywl4ZZwogTgEMN2+Gy4c9LlJhzJYcb2bAEDNlHkn/MQ1wXAVlk5lyMJKzDfj2i5I95w45ps5dtZOI10meNKAsDQC+B7nISSYaYSiDdjaI9jSPU9oUVHAT4IjSNMvsDkuXTk+uGThp1N16qfQLaLOOtb6KVFo3LhGloCt6hjfDFGv4cQwLHuDIXHRoD0Qa3lumLlAfg2B SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2017 20:38:12.2983 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf3a169c-3393-4fdb-e85b-08d53db2713a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3468 Subject: [dpdk-dev] [PATCH 00/13] examples/eventdev: add capability based pipeline support 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: Thu, 07 Dec 2017 20:38:18 -0000 The eventdev_pipeline_sw_pmd supports a single pipeline type that follows a strict Rx - Worker - Tx pipeline flow. This patch-set aims to generalise pipeline configuration across event devices based on their capabilities. The Rx, Tx and worker functionalities are classified based on these capabilities. This allows us to abstract the underlying event device and seamlessly switch between pipeline models. Pavan Nikhilesh (13): examples/eventdev: add Rx adapter support examples/eventdev: move common data into pipeline common examples/eventdev: add framework for caps based pipeline examples/eventdev: add generic worker pipeline examples/eventdev: add ops to check cmdline args examples/eventdev: add non burst mode generic worker examples/eventdev: add thread safe Tx worker pipeline examples/eventdev: add burst for thread safe pipeline examples/eventdev: add all type queue option examples/eventdev: add single stage pipeline worker examples/eventdev: add atq single stage pipeline worker examples/eventdev_pipeline_sw_pmd: rename example doc: update example eventdev_pipeline ...v_pipeline_sw_pmd.rst => eventdev_pipeline.rst} | 6 +- doc/guides/sample_app_ug/index.rst | 2 +- examples/Makefile | 2 +- .../Makefile | 4 +- .../main.c | 527 ++------------ examples/eventdev_pipeline/pipeline_common.h | 183 +++++ .../eventdev_pipeline/pipeline_worker_generic.c | 575 +++++++++++++++ examples/eventdev_pipeline/pipeline_worker_tx.c | 804 +++++++++++++++++++++ 8 files changed, 1615 insertions(+), 488 deletions(-) rename doc/guides/sample_app_ug/{eventdev_pipeline_sw_pmd.rst => eventdev_pipeline.rst} (97%) rename examples/{eventdev_pipeline_sw_pmd => eventdev_pipeline}/Makefile (95%) rename examples/{eventdev_pipeline_sw_pmd => eventdev_pipeline}/main.c (51%) create mode 100644 examples/eventdev_pipeline/pipeline_common.h create mode 100644 examples/eventdev_pipeline/pipeline_worker_generic.c create mode 100644 examples/eventdev_pipeline/pipeline_worker_tx.c -- 2.14.1