From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690062.outbound.protection.outlook.com [40.107.69.62]) by dpdk.org (Postfix) with ESMTP id B31DB378B for ; Thu, 28 Jun 2018 12:59:14 +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=V4KvSetqfm0amD17JiEbP7CdUf6Inb+4TrEhUHMDnMU=; b=N+dvS7oj1RRuhWhlvDwaiePD2quXRS0Jj4ZQlL31Z3KTMCDrwgdoUZyxdbLl5i2tzKWoe6xwZU5w96nMYHM4o6/MxK3YFec3rsKpHa31Cl+X/xXD5lQPK7bNX37d0gPidyGUt1fRwaH7TgER3Z3p3gnlriPxv+fAy+RlblgXI+M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [IPv6:2405:204:d40a:bcca:4dc1:3116:d07a:f52e] (2405:204:d40a:bcca:4dc1:3116:d07a:f52e) by SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.20; Thu, 28 Jun 2018 10:59:08 +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> From: "Joseph, Anoob" Message-ID: Date: Thu, 28 Jun 2018 16:28:53 +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: <2601191342CEEE43887BDE71AB977258C0C43119@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: [2405:204:d40a:bcca:4dc1:3116:d07a:f52e] X-ClientProxiedBy: BM1PR0101CA0024.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::34) To SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 64ba0f13-052b-4b3c-13c5-08d5dce62e86 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4910; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4910; 3:WQD1R+3H3qg32eerBF506BDFlo654XisJ+j1bqum6RM9+Nl93i/IKcMbdAz//v7WUUq8mQTZF3Vfy0Uwg607hL331YytToa+UY/Ie8t6fhe5UrRaB5OrcFpCDMpa876B9Ib1tqGmGGu3dZMFb+mOrWBvRgJTX3uPLe727Ia1KCqZExrab1OA97stNIsncGT7dd5cvSWPNCJyU6Mn/bhbqw44NmCO2Sotp7BXq9vaLaFYQQgKigLXRMOb+Bc2DmQo; 25:ek/hNSzbSa10jj9BakpccYV0Kw4ETmhXqR/byV5Kd8+ijupGvR3jpx1PPGBnqyJljP3WS60R6QdZ6xpeiSYUMuF6oCkaGMW5M0C8vJz6v8qyQAel/VfS5doZTrQkCx/nXsrQmSr1sCCHprdpAtl9zhMYTuk0SJfuXgp4GAgRWSaOplMD54++zzXeU37szXgVkNZ8vVQGIUEWO5FSxS5SAWOVYtnVCf4akiqD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change-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)(8121501046)(5005006)(10201501046)(93006095)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:SN6PR07MB4910; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4910; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4910; 4:iEeNJVbQV9KLBX8mtMqaEA87dC0NIEIaBoGHjHuh9oAB5WfZjHPnXdOTjgN2pmaotK/7shsKc44s7XHk7oYlyOZssqRRGOozTJl7wU5LYrFrIBMHe4nljPzr6SUk5AOzLdGD7Zkr6z3b53qyAezw+vimn6a15hRJvEzh579vOStrz/u1wvZJSEkv5vqc2TB+3JXrNPBiPb6JmJA18sJ0ke0DWAkT9oTV8+TrCAJ+sf5I17aoiTrPKWTh4mwSn8bpmSF85uX/6Or7aelNahwdzBM6TFQuuhMz5A5EkOta9sSb/c96GWQb7FfbTMM4By3Yitv7CslsJpU+q9TL5X4xGQe7FxJw8xcfpdbABOu2GwmQ1vviDcI5FCkjjIiGlfDs X-Forefront-PRVS: 0717E25089 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(136003)(346002)(366004)(376002)(52164004)(189003)(199004)(13464003)(2486003)(23676004)(31686004)(52146003)(53546011)(76176011)(16526019)(386003)(42882007)(186003)(97736004)(46003)(67846002)(65826007)(1706002)(5660300001)(50466002)(93886005)(72206003)(36756003)(229853002)(54906003)(6666003)(58126008)(6486002)(52116002)(230700001)(110136005)(316002)(47776003)(106356001)(65806001)(6116002)(7736002)(52396003)(478600001)(53936002)(65956001)(105586002)(2906002)(476003)(8676002)(64126003)(486006)(305945005)(11346002)(68736007)(446003)(3260700006)(8936002)(31696002)(25786009)(4326008)(81156014)(81166006)(2616005)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4910; H:[IPv6:2405:204:d40a:bcca:4dc1:3116:d07a:f52e]; 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?MTtTTjZQUjA3TUI0OTEwOzIzOkRNa2xGNGwvaGQzQUo5MEVzN3c5UVZUNnBy?= =?utf-8?B?b0tYTDVwbGtJaW5UMFlJVmthVTFteDM5dmhrMlhkRU80aFZicmMvOGs4Uzk4?= =?utf-8?B?eG91bnRxQkg4YnFiMU9rWXpTL250TTZQenJpeHZHMmI1bXlKcW41dDNhTElS?= =?utf-8?B?VWdEWnV4cG92dGVOeC9lcWlUc0l3b1FWcjFCWEhmS29wOC82TkpBTXVQdkZw?= =?utf-8?B?cVkvRGxGaVJINXd5NEkyeVo4UHJuWXoyTTM0ZHU2RWFRdTB2c3RzbzZMZXRk?= =?utf-8?B?NXRQa0ZqZjRoZ1lyM0g1Tzg4L2JkU3dmWHIwaDVndmtuSW5GNURxM3lSSngy?= =?utf-8?B?amlid1podnJKT01WNmh0cnRJZmxrOHhZdzBiUTNkYitWcXNSbDVEb0QyYWZH?= =?utf-8?B?NEhPcnJpRWlpdHA1OHBjRHpsdVdqSExxSG1KMThEaTNiYll2T09OWDZGNGdB?= =?utf-8?B?V2U4bDA0VTJ4dDJuSkxta29nVUtna0tqVEN5bXJwc2NYSWE3TWZqRzA1dFJK?= =?utf-8?B?L0orVnZtRVk3SHZVTDV5K25FNGxlemJNbHBIbmpINVhLcGRFZnN2RHZpRlJi?= =?utf-8?B?bDlaZFZmY29xS3hMbEFMMXNZTlZOQ2Eza1A1Z2hYL0FaTkg0UTcvMnRlL2ZS?= =?utf-8?B?bEo2TTdrRlBGaHRVd09zMmR2Q0R2blJnZzZqUW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qrJWP01nGNcIByu41cvi8pIQiFFbLjWgUtGQHNTirJ6rCzfygFfK59J4QrPWbss5yoOXG2BEuwSBphhf++rl3Ot80z02E8wN9vFK33ZiYdTNRVoSxNa6Iukbugp+DdL8C6Ocxj2c5GJaAy12iRzB6ASMauuAjkITCv+bbKyQfvX1lvom58uMCt2IDJ2u85u5W1FSVdKkj9KxyhSVGLV70hrSKky48ngNp6Lm+03go1x7zV3YFThITHulAqWgVHkJTuisC3zbqWx1doI0Hyr/MuEe+d22SeVWCzmLYDBbmCSkU6p2BUjrYPZefUox6bcnZKV5KR9E/sjib4As0gSA==; 5:6Ukv1bJiE2qnzcL0biBlwwmXE+QrD94AOAM887QxDmO/EtY5pJ7oqVOYuGzGfV7oLCu+CjObaA47l2u42sulrlGzhj1XYLyqzoe7jdLgsjC5xkJN3SIZMdrp7gR1bjo4Bh/pVLfuysIw7hvQmHqSUthBXZxLqgOZOBCfco/rkI8=; 24:CTKTHkt4peTeLBbsE57mc+Lzi29AQraE0d5VsOYnTzHHRzkvEGMpcVavsytbtDn1iXgLSGDBzKROzGByWa1zExJgVVDfoGaeNvYV9iDsEvc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4910; 7:EBcXK5XIH2ZE3NN9Wbv+VwADiocEOy1Yvdc6S39VlQGDVbaxZuQ0siY9OPq0YInFbOEfQUiFHsYtQpgqr160sRHXRiEKpQSKxKsu222ifOeUydGRc8HU9LVPFONyN9yZkdbtbZQ5ftvde/HH8c+9p+U7uKdHMK1DFGVYYrcKnLZblS+hEnX2IGEYiQg0JEPZL3nLdWxSyxPIooRtcHkk+BEN6om4T5VfpFFiCmrkH80+MIep/49CCu437CT0nGWu X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2018 10:59:08.1199 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 64ba0f13-052b-4b3c-13c5-08d5dce62e86 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4910 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 10:59:15 -0000 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. Sample usage: ./l2fwd -- -- --transfer-mode 0 #for existing behavior Right now mode is selected during startup. Do you think build time is better? Thanks, Anoob