From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0079.outbound.protection.outlook.com [104.47.38.79]) by dpdk.org (Postfix) with ESMTP id D2A7E101B for ; Thu, 28 Jun 2018 13:54:56 +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=qVUCchywMA4Mm0RNGVJjKpd+18yjrJ/JyixPIzCBhIs=; b=iCUlKLompON0ZXjlWGxTniPLH6+iRt4TTUMT00do06O+hkTqTDHZCshDCK8kkTPWQDQs9AwKYi1Mmz2sN5hkVtan6TeDQkap50a+5d1yVHbQY70YHz0/o9+CFQFaI2MvcMODuGwjR1Z9FSrD3Sz6tT5Hqzh8azMS0AArhHGCpsQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [192.168.225.22] (137.97.159.45) by BN7PR07MB4900.namprd07.prod.outlook.com (2603:10b6:408::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.23; Thu, 28 Jun 2018 11:54:51 +0000 To: "Ananyev, Konstantin" , Sunil Kumar Kori , "Richardson, Bruce" , Jerin Jacob , "De Lara Guarch, Pablo" Cc: Hemant Agrawal , Narayana Prasad , "Rao, Nikhil" , Pavan Nikhilesh , "dev@dpdk.org" References: <1528478659-15859-1-git-send-email-anoob.joseph@caviumnetworks.com> <1528478659-15859-2-git-send-email-anoob.joseph@caviumnetworks.com> <12a1fc10-6879-4e1a-bcb4-ec66a9494346@caviumnetworks.com> <2601191342CEEE43887BDE71AB977258C0C43119@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB977258C0C43413@irsmsx105.ger.corp.intel.com> From: "Joseph, Anoob" Message-ID: <20dd9653-cf5e-7842-a30b-654c77b00756@caviumnetworks.com> Date: Thu, 28 Jun 2018 17:24:39 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <2601191342CEEE43887BDE71AB977258C0C43413@irsmsx105.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [137.97.159.45] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To BN7PR07MB4900.namprd07.prod.outlook.com (2603:10b6:408::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5e1dbc4f-f335-407b-2db8-08d5dcedf728 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4900; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4900; 3:ezBVYxwU0bEG6iQ/4Fnp8hpMAwQF0aYNJY0dHI9cLw36dz6wUe6kGK3tOAHfNHMXg9PHzCdp0WLJbaaIcRrMvL2YszS+bkD02Ey+91G7qawHTbuUcsofNQkXWGiDLhhsh9GI1xYZSYJOK+QlLzSrN9/HUHJSCzJmcZSGcjHxP9x/eL+7KS4gKXiszfctYqJ4ZMPpr018xK1MZEFvxe1MZKbFGvOGZdUQ8Y6r9Og7y8kIe5m9+AsTHHL0WLuVMFQo; 25:9lU+hNKfGJVQFXA5CaV7smTUWGrT3EMpeC1cLPwPLxqnkLLjMdp1shkLd3UyHByfRf+4EvpAYAn7bGf6oUsoSlyjyPE18KUpL2/bfA+F3QQIOaGJ1TeZ3lGsQwV/We8tKu7QQLdFv3ACgbPl9+JoWiA/DzwlT04epExyZHmTfHQ7wGh+4B7W+4Pi0t489KI30Seljafiv4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DA3y5rhFkv9RgQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(3002001)(93006095)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4900; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4900; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4900; 4:hx+XFNF7hTPM0T0NUSo0/ZrEcoR3GmM8rXuwfhEljoz2KIRXvrTS00K3M/ktk2wZrTSRg5RpDRR1SnLpcx4cy7bkIAdy+tUBaOd2vrByl2UH+i5osqrMcCmP9Kl930TmTBIN4suUndB59H6d02QUdLS7ja3dLjRyEcC+Ni/fm8m5GlkBhbe/FPOrCu5UeAm1Tcx8gsAiEHjP2c7oj79sobKF1TNBYS0Wpdfzo8m5U6J0CV4d4coMXuCsFh7Y1W3GaPsZiQW3bXgl45xjkNfyt0QpK1Y2EgJhxAoCH96ImcQMlmR4Yzvo4ikMaoULUZL3KN1iWTSJccF6B1g9hvRWsxs7w7KwL0Z3gexkzrgisKcxhRprDewyByDWr+1XPu8y X-Forefront-PRVS: 0717E25089 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(366004)(39860400002)(396003)(136003)(346002)(376002)(189003)(199004)(52164004)(13464003)(386003)(97736004)(6116002)(305945005)(4326008)(106356001)(3260700006)(81156014)(50466002)(31696002)(25786009)(6246003)(53936002)(105586002)(42882007)(68736007)(47776003)(65826007)(186003)(7736002)(65956001)(81166006)(64126003)(6486002)(8676002)(5660300001)(6666003)(31686004)(66066001)(67846002)(54906003)(229853002)(23676004)(36756003)(8936002)(77096007)(230700001)(16526019)(486006)(16576012)(58126008)(316002)(956004)(476003)(53546011)(117156002)(11346002)(446003)(52146003)(478600001)(72206003)(2906002)(76176011)(65806001)(52116002)(26005)(3846002)(2616005)(93886005)(110136005)(2486003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4900; H:[192.168.225.22]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjdQUjA3TUI0OTAwOzIzOldCT2NucDJYdEtGQ3UweFNpNmJwYlZOcHRS?= =?utf-8?B?WEpXSHlWVW1yNnZIUUYrYlJqN2oyTnlIK3RPYitsS1VGc05kME1hNWxNWFB1?= =?utf-8?B?N3FkSFQ5bC90RmttRlBDOHRRQXpxUWpDbU43RnNvNHdXdnU3QWlBaWpjOXVn?= =?utf-8?B?YmhZdmZYS2dJblhvcUJCQWxwTzRKNkxNTG95Sy90OE4vYW94YVF6Rlg2OXlo?= =?utf-8?B?Vjh6eEdGL2dOdU0xQnR0Z3VkVE44U1RPL0JkeW9tSU1WVDZHbm53TENxMG45?= =?utf-8?B?ZHFPb281aTYydllMU29mRi9LeUZlemJhNkptUFpHZE1NT01XM0dhdkVoamE1?= =?utf-8?B?ajNxckhvcm9JNE1ETFZkUnIvaFA4TENMdDBzVmg1WTdVbE8reVhnMDhTR0s2?= =?utf-8?B?UTkvQldyZk9kUkppcmtRM3dtckRHS2U2QTNDeWJXU1kzdFpCWjNYemlOR1ll?= =?utf-8?B?QVplTGV5Mnp0V3RUMGZkRkFpOEltT0dwak4zeklmT0dDTTB1WFZWZ05PekU3?= =?utf-8?B?T0lpSllUNjl3Vmp4QWgza2lQc1FCQ1JFU2xXTkFzbytPQWM1UkN6Z096WUFS?= =?utf-8?B?RDBmOXlQeCtkUlN2ZWg5bE42QTJoRmhDdm81cVhZUW10by85Yk54WU1ESVNy?= =?utf-8?B?aGN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+jR+PuAVYFGhU1dDPGaZPJzVNS7ZyfHFt0zZsxBSaHL7b0fRuHzT9GFhLvHiyYIB X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2018 11:54:51.3599 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5e1dbc4f-f335-407b-2db8-08d5dcedf728 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4900 Subject: Re: [dpdk-dev] [PATCH 01/20] eventdev: add files for eventmode helper 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, 28 Jun 2018 11:54:57 -0000 Hi Konstantin, On 28-06-2018 17:14, Ananyev, Konstantin wrote: > >> -----Original Message----- >> From: Joseph, Anoob [mailto:Anoob.Joseph@caviumnetworks.com] >> Sent: Thursday, June 28, 2018 11:59 AM >> To: Ananyev, Konstantin ; Sunil Kumar Kori ; Richardson, Bruce >> ; Jerin Jacob ; De Lara Guarch, Pablo >> >> Cc: Hemant Agrawal ; Narayana Prasad ; Rao, Nikhil >> ; Pavan Nikhilesh ; dev@dpdk.org >> Subject: Re: [dpdk-dev] [PATCH 01/20] eventdev: add files for eventmode helper >> >> Hi Konstantin, >> >> On 28-06-2018 16:17, Ananyev, Konstantin wrote: >>> Hi Anoob, >>> >>>> -----Original Message----- >>>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Joseph, Anoob >>>> Sent: Thursday, June 28, 2018 11:43 AM >>>> To: Sunil Kumar Kori ; Richardson, Bruce ; Jerin Jacob >>>> ; De Lara Guarch, Pablo >>>> Cc: Hemant Agrawal ; Narayana Prasad ; Rao, >> Nikhil >>>> ; Pavan Nikhilesh ; dev@dpdk.org >>>> Subject: Re: [dpdk-dev] [PATCH 01/20] eventdev: add files for eventmode helper >>>> >>>> Hi Sunil, >>>> >>>> On 27-06-2018 11:50, Sunil Kumar Kori wrote: >>>>> External Email >>>>> >>>>> Regards >>>>> Sunil Kumar >>>>> >>>>>> -----Original Message----- >>>>>> From: Anoob Joseph [mailto:anoob.joseph@caviumnetworks.com] >>>>>> Sent: Friday, June 8, 2018 10:54 PM >>>>>> To: Bruce Richardson ; Jerin Jacob >>>>>> ; Pablo de Lara >>>>>> >>>>>> Cc: Anoob Joseph ; Hemant Agrawal >>>>>> ; Narayana Prasad >>>>>> ; Nikhil Rao >>>>>> ; Pavan Nikhilesh >>>>>> ; Sunil Kumar Kori >>>>>> ; dev@dpdk.org >>>>>> Subject: [PATCH 01/20] eventdev: add files for eventmode helper >>>>>> >>>>>> Signed-off-by: Anoob Joseph >>>>>> --- >>>>>> lib/librte_eventdev/Makefile | 2 ++ >>>>>> lib/librte_eventdev/rte_eventmode_helper.c | 7 +++++++ >>>>>> lib/librte_eventdev/rte_eventmode_helper.h | 6 ++++++ >>>>>> lib/librte_eventdev/rte_eventmode_helper_internal.h | 6 ++++++ >>>>>> 4 files changed, 21 insertions(+) >>>>>> create mode 100644 lib/librte_eventdev/rte_eventmode_helper.c >>>>>> create mode 100644 lib/librte_eventdev/rte_eventmode_helper.h >>>>>> create mode 100644 lib/librte_eventdev/rte_eventmode_helper_internal.h >>>>>> >>>>> Having a separate helper library to configure eventdev may be a overhead to the application >>>>> as application needs to understand main DPDK API as well as helper routines. >>>>> It can be kept in application as a separate file. >>>> For one application we could add a new file, but if we are to enable >>>> event mode with multiple applications, wouldn't this be duplication of >>>> lot of code? Considering that I haven't added the required parsing >>>> routines, the code additions in one application to make it eventdriven >>>> would be huge. >>>> >>>> I do agree that making this as a library poses its own challenges, but >>>> do you have something better in mind? Another option we can think of is >>>> making all these changes part of some common headers and then each >>>> application can include and start using these functions. I'm fine with >>>> any approach, but we need to consider making at-least l3fwd & >>>> ipsec-secgw also event driven. >>> A quick q - does it mean that l3fwd and ipsec-secgw would become event driven only? >>> Or it would be possible to choose (at startup or at build time) between current and new >>> behavior? >> The mode would be chosen with CL option "--transfer-mode ". When >> MODE=0, the application will run in existing (poll) mode. When MODE=1, >> the application would run in event mode. In that case only, event >> device, eth rx adapter etc would be initialized and used. > Ok sounds good to me. > >> Sample usage: ./l2fwd -- -- --transfer-mode >> 0 #for existing behavior >> >> Right now mode is selected during startup. Do you think build time is >> better? > No, I am quite happy with suggested approach. > My only concern would be to keep intact existing functionality/performance > and minimize changes in the existing code. > Thanks > Konstantin > > Existing functionality/performance would be intact. That was the whole idea with the helper function additions. Following would be a rough estimate of the additions, 1. Call to the helper function to print the usage in app_usage 2. Call to the helper function to parse the args and return the generated "conf" 3. Call to the helper function for initializing devs based on conf (when poll mode, this will return immediately) 4. Launch worker based on conf. When it's poll mode, call the existing poll mode worker. Hope this approach is fine even when extended to other apps. Thanks, Anoob