From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0071.outbound.protection.outlook.com [104.47.38.71]) by dpdk.org (Postfix) with ESMTP id 49CBC7D30 for ; Thu, 7 Dec 2017 21:38:29 +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=+3pfIjdUNiCFt+beXvN6ihYiIBCnveHWyfzxphVLRvI=; b=OdtM+f4qcEq8Asd3MRfEjgXpXOJOung+NDVhajbOwTosACiCoWVIs4R48e6JxAfuqi571FzNnD7RMWaJQDafTgKzxwSq1k3cBD5J8a5QchqT5fFRaLrh4l7H18UhJREo2C/GdbkcGRey2sZAMyE6CcuyEg5KEVr93MbqH69fcTc= 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:24 +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:55 +0530 Message-Id: <20171207203705.25020-4-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171207203705.25020-1-pbhagavatula@caviumnetworks.com> References: <20171207203705.25020-1-pbhagavatula@caviumnetworks.com> 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: d281afe7-e3bf-44aa-e6af-08d53db2784e 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:xlLtxkQ4lx8IZRtx756u6xZIWilKTVg9UYvHnWulw8W4xb4RQPAAY6+aY9EwDQ5i97ereXwkAgyfep1lBAfw0i4F4GLj9zN0l12iFezqoRU/OAowOQIQVwrUZZq5sx9Q1k92+Dl5B37YI7oqAd0i9Gcy8GDw1w4mX2PlQMMQBX/wcjyiCetPbPvkWM6dnu6gexPNhlI6Ktj2du1Z30Va3+1TMjRgENbPCO+1dURJWys1/nHrl9G5TTE5SevdY557; 25:sm5CMON0SbnjH1mzYQnMBXJ7GgrJL4VWJa1Kg8sxmo1m12Nnbtzzjp5/ureykqB3j/Ng0N+xKCgJG92KMMkF1Gkdjyz7eYjbxLpSC/X/8BHQnjljEsZTjIVsz2uSAtm2eoAgXP01fGnMUBjWXIMiIaYqtgvNYB/jxC+/P7MOdJXvTCy20f3SZDGQhn/lejqb1K/xWwKyttQHIfpbvPxePp+PUhgoUO6JT1JaOFk81kNFLTA1yaQcU/VQp3mN5iGy10I3KgKjuStBfg64e9ZZbEjMLYDTp+DPnLUXbP94qZNJtWEfZynelEuOb5+327rgMWofmLGUS2HroZmuIUQE2Q==; 31:HPxWO1e4u0BqeFUVT+yz32QFx2DPkByhwiVFjP7aW6bzTY71+J8CsQnTAcamHe0C2GgRrFLZpv9ge6ZB5RSs/tRCjl9bHWab0kG6OHRgF2wPpVO27PzYVGUEg99FFY2CXnfmWFI4ZLfYNeSppli+WCdNpV4Yt/cUmdHUTGKREQhdinSAMCpgCRbRwvT01K/PEXu1IQ5zJpaxcQFgOB7z2/UJ7F5AOfyEMGG5vW0wZaU= X-MS-TrafficTypeDiagnostic: DM5PR07MB3468: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 20:fGyUbYv7wVgoky/uvOxcWDrzLf4bYE5kAgAwxXUPVzpa3Pq7w9iGEnbWM7Bnju4dm3Py6PCdOkA94teTlGaWKu+yfkKMcUe8Br3nVtsNzkXzSV2qa3VXrIDalqIKRg0ZnPYZbU3u5paBC2aKz+jPLAQNYLheDrj1w8W5K0V6Cvxf01F/2b3ZEtRur/XWdZs9bIvE2AFwqgMwihgh1zuiI7eLT1/SrICPOiVsnzEKMKX/eTZGvqqnmKNKHYQMfhXtHuVECKYTZK0jF/dUGFPNBSCFuA2Xr/0XN18NGcTZUxPBFRoXMZQXuyt61zR392Axdib14L8RCsgbtRkknghU06LSRGVt4jpUbHU1RgxXfOC0o0qwoVrwSAeTGlSq1fscBdnqaq3jAAbXph92vOaaN5BihSRm1LdXqB1rEDDwuH0n90Wv5MbqPoRcek9H/sTGLXzvpXIellztaEQiVZDXrCk49cSkW//Yz6fFxymDSGVi/koDGL0R4y75c+OI07r3Q2p/oO/dRK9ekppk9m4DsU/7XANTyV+/JYm4t06Hxic7VQwHB1vyfNnfmAD+vwNi0OBJwpGrkL855SlRDeTK4Bq5zLy9ORX60oS/jbqPYQE=; 4:+E3ohA+WuoCubDPlFn6CLGXEPOeYo6Tc4LtayAhqkCoOnrYtC7soUrD+xRO02nHFW7uXVQjZRv1lQrKvuDln0UnXf4o3dryAA/dVlS1gC2+xJ8Z3Jp/EDzMuDvdV0+XHNdhbHV6unGOMbGvq5a/DQTuYPYTnNH7A0nHiyfgSelYxPvxvNYp0y+i0FPSS6Gq4T3CHV7jQM5lTcZFGQp5gwU4/NVCAJ/KaaeXGaQ6hlu5iQOobdlBHZ9HQLSoRuMJt6khm0pMmBn1au0bLCBK6Kw== 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)(2950100002)(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)(76176011)(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:fTDs8j9jU/jzY1QscEG8S8zsjFrzYPcNcbImvwIab?= =?us-ascii?Q?BzwaEmrm2yIzlNlTtoe+kthwse+rcPbgH3Gda1jLr0GN1ySgHaR/GC2mOTRB?= =?us-ascii?Q?lj/1QN/C8uNDYoeISpuclb0tF16IcB1sxJ7wihh3LFVmVNiSdYKFW7qzIbZa?= =?us-ascii?Q?oKTy2O1vcBdJ2m/y7jIcSm4+AqUmktJWRYCMfwbLGPb1znTIG+Qa03Nsn3OY?= =?us-ascii?Q?VgxngHLiuotO2+eUr6L6WU+Vg7N8xQ7BRbATw8nN8nJ34dOikhwzKKgaPY52?= =?us-ascii?Q?MRrnSrTCfmx2Y6/jowF+u5LDYw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agnostics: 1; DM5PR07MB3468; 6:C8Sqt3EqWI6s+peEDmO5z1QcO1s4Q2Uj2vUmvtg2sANtfZmPT3OWUyZozbyx5nIs7lNe4K5avxjc3rUhaCxHNr41va1JbnSi2AduQTIHAJGjwz01vFFuL3Fnl6Qi1QRRebJWdUdsmf1KgpJzcDF+2pb2ByrpHJlAMn6YEdLzlsVb+wAgLXJoA+AKSO8V3Tma/A6+vbN+g/7M6CuKy5/vB9Sh9swgDXNZBD60x4wOTtmg7PqZtF4NTZGi4gS/p+NFirXjWjd3ZyNuGBA+r09Cx2R2cbr2Olyw2V9zH1OGNyUd/+b6LDU9OAg5BsjSm0abM0FThE9pSDeMwchtodcDqsBXf5bIVwRdza0mfJRsoko=; 5:XREFb+uqZLe5pNClVRbeCinD0UajbSynXpsZAygy8eq+eO3k3K4iU9Sx5+wZ6kgrRowDS/6gdqjGl2hL2ZxQa4CDevYJi1MpatTVd1VoWBvrMY3V1sAbsL42qZaDFB3cIXVtbttA38V/qvS0GOC2LYWaSMjiXKwGL+ZYkfyxfgk=; 24:fsWlTm+dQSw1OXjKCC6JIkQr2xBcCjxF+AhE9qstxZ+T1oFK1YAU9WC3MfPIZjp9mDvEpBCGbbv86etiIWj4JIvDKi5aSnReRtfpkaEQq7E=; 7:2+2RK5F6mSG1VGi8z1j9cWbqCauq8tVS0G0s2ju9wUYsKKL8/Tex48xc+WALsm6Egn22BCwmK6a3RRlVyartkueJHzXL+oj9xgYPglOP8O+TFHNojmSbGvRjZB/GJzYmnZx2xfEJS4GMRcABiXA0mDvw3lHZLv/Zw6OA/Fp8hZRr4lIcNxK540TUhDjDff8FPJDMYpNxFky07vhJWDlnuLVFYbeoYgzOVkcqOTvqSpybMrUrBiULbi8cJDy3uisQ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2017 20:38:24.1421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d281afe7-e3bf-44aa-e6af-08d53db2784e 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 03/13] examples/eventdev: add framework for caps based pipeline 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:29 -0000 Add framework to support capability based pipeline. Based on the capability of event device and probed ethernet devices the optimal pipeline configuration can be chosen. Signed-off-by: Pavan Nikhilesh --- examples/eventdev_pipeline_sw_pmd/pipeline_common.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/eventdev_pipeline_sw_pmd/pipeline_common.h b/examples/eventdev_pipeline_sw_pmd/pipeline_common.h index 938e155d3..5219a4e85 100644 --- a/examples/eventdev_pipeline_sw_pmd/pipeline_common.h +++ b/examples/eventdev_pipeline_sw_pmd/pipeline_common.h @@ -67,6 +67,16 @@ struct worker_data { uint8_t port_id; } __rte_cache_aligned; +struct setup_data { + int (*worker_loop)(void *); + int (*consumer_loop)(void); + void (*schedule_loop)(unsigned int); + int (*eventdev_setup)(struct prod_data *, struct cons_data *, + struct worker_data *); + void (*rx_adapter_setup)(uint16_t nb_ports); + void (*opt_check)(void); +}; + struct fastpath_data { volatile int done; uint32_t rx_lock; @@ -82,6 +92,7 @@ struct fastpath_data { unsigned int sched_core[MAX_NUM_CORE]; unsigned int worker_core[MAX_NUM_CORE]; struct rte_eth_dev_tx_buffer *tx_buf[RTE_MAX_ETHPORTS]; + struct setup_data cap; } __rte_cache_aligned; struct config_data { -- 2.14.1