From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0065.outbound.protection.outlook.com [104.47.36.65]) by dpdk.org (Postfix) with ESMTP id 7AA4B2B83 for ; Mon, 13 Aug 2018 09:22:06 +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=y6wnaolOfWvaP2unOp9BBgDoJUFgWR8vfkJO/HMD8Hs=; b=PwBShjv3nDDX9GFS/viUV8O7Bggzi87An8mC6gGjmQlKh7P9baLMTX/CVL4T27yStsPH+39yHmCeZGhTtUdmRIkWJRG/bBWFi3Po4bN56Tcp5qfBqGV4+ewuKAgeU86dYgJJatoNEPOh3W+MAwvHucXxIgTk8By/R3y7asxA3YM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [10.88.100.222] (115.113.156.2) by BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.19; Mon, 13 Aug 2018 07:21:58 +0000 To: Thomas Monjalon , "Richardson, Bruce" , "De Lara Guarch, Pablo" Cc: "Ananyev, Konstantin" , Jerin Jacob , Stephen Hemminger , "dev@dpdk.org" , Narayana Prasad , Hemant Agrawal , Sunil Kumar Kori , "Rao, Nikhil" References: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> <1531289248-20025-1-git-send-email-anoob.joseph@caviumnetworks.com> <3685021.sWt9K18E1B@xps> <20180801095414.7bc34b30@xeon-e3> <20180801172628.GA471@jerin> <2601191342CEEE43887BDE71AB977258E6D4D959@IRSMSX102.ger.corp.intel.com> From: "Joseph, Anoob" Message-ID: Date: Mon, 13 Aug 2018 12:52:19 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <2601191342CEEE43887BDE71AB977258E6D4D959@IRSMSX102.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: PN1PR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::12) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9401f5ad-64c2-4a5e-322a-08d600ed7715 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:uR7OS6MYvy+MI+juWlfXEuEcVXWZBRzHrYNmEt2qg94PF1lKK/A7jXGGHV2jfnUhzk6CMTxVU8qHghhKN/ROZ36BV1whA2MQAxUhHTko0KJbPuhTRHEl9VfEg6LcbAQsTfwQ171hNHTvXmH4jSLf/prSd83rUw5tsR8VeaEx6Y5B+799ScLQFxWU0ZNfO8ItAflZCpANX1L+vYxCzWClI5R9+2OUXnZzIc8W2LfSBynOFBwTJkJOv9Y2PTsbQLBt; 25:mTK2S20uIx5OUVuLsMNP0ZEtefXGiWGDgAiZ50wfikWbN73wjyALBXMwQaUxkdhiKcGlOtJ53bEe+m6phXUa7QLXSmrAMAs2Sngs7N2XbZ/X6bBUlKsw/dhDF4kLT4+lGZbDzLF0Jmb6mR2+z+Hve+MNWTRtTs1MZfO02EAOCEomkyExIyaBpQ/wv2sksfwZerf5zlq/6xd/8G7fJqulJM09IzNkqWM6Op5izzHO6/g4Q2NdC1HhzgQF8zAHCmls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XboX5KA7JNPigVzkdPTG8acrTc+DhYGAetOqtxsv/ey5C222i6RCeAC6Qs8f5jc/WmYZlpZlXxKEkeG0Hzsd1vbgjwK6BVvdpk0y+OqoV3iU6uHYYOVW+A4q8QLgbyJwbMfz8GtCgOMTzrC6rg8U8UaJ9ftsQT23Csn1Ni3Wwtc3d5g//8NTVWJ7dTMpMLb8VW3hisKiXprapAaJwLO7Hv/69iCBz8wCR0h+0Zd1HBJg6nOcDGYnI5wG9/Q93b8G0me0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 07630F72AD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(376002)(346002)(136003)(366004)(39850400004)(396003)(52164004)(189003)(199004)(53754006)(6116002)(3846002)(446003)(230700001)(966005)(478600001)(11346002)(105586002)(72206003)(50466002)(8936002)(106356001)(7736002)(93886005)(305945005)(8676002)(68736007)(476003)(81166006)(2616005)(956004)(31686004)(81156014)(67846002)(229853002)(36756003)(2486003)(6486002)(97736004)(25786009)(64126003)(3260700006)(4326008)(47776003)(65806001)(6306002)(6246003)(54906003)(65956001)(66066001)(42882007)(26005)(53546011)(6666003)(23676004)(16526019)(76176011)(58126008)(31696002)(55236004)(5660300001)(14444005)(65826007)(2906002)(316002)(186003)(386003)(52146003)(53936002)(52116002)(77096007)(110136005)(486006)(16576012); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; H:[10.88.100.222]; 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?MTtCWUFQUjA3TUI0OTAyOzIzOkd4TG5mcEI4dFZQalRFL1lOaHI4VmtIRm1l?= =?utf-8?B?bzFyeGt3RHNKU2RnN3Nua3pDRlNFNVVGT1IwRmhURnR5aGgrbzd6cDlUTy84?= =?utf-8?B?c1RSRExDMEdLVi9KYmNHTFBCd0xrUDg5Q21xWmlmOFQzd2IzcHRJVDRFUDlZ?= =?utf-8?B?Q3JxREptODJsekpXQzBjay9FRHFPOHZjRGtxTTRlMGtzUXRTUFdINDYzZkls?= =?utf-8?B?bTMzblFKVGI5d0xVeG5PcTBFemZiYVlpRm5vQjRITWdSS3lIajhYdWdVeFFq?= =?utf-8?B?eTRkSkRiY0w2eW45TXRTMEVwVXJvRDJCU2c3Z1A5QVVKK1NUckIxL0plUlB6?= =?utf-8?B?Y29NbjZIUFVHNTMwMUlBenFXclR6QVJjSzIxaEZqdXVPZlhhZGJzSEh1dy8w?= =?utf-8?B?ZTRZWEtCcDJWV0RkSFdZM2trQzlGMFNvbmhIc0JvTkRQQmRDdWtFblkySjAw?= =?utf-8?B?Uk12dnFEcnVCV1BFRVloVVRZNEVEOEZwbTQ2NVZlcDJwTkhqK2t6SzBockJl?= =?utf-8?B?dXZrRWI5L3pZbGNESE5QQU1yb2EyL3EwWnQzNUtNRzZGWVRvWVkwNVJxMHhS?= =?utf-8?B?Q1FlUjNlVGQ1MEpocUtTcE9CQWNuRExYV2wySlNpblV6bHVkUm02V1ltUVRv?= =?utf-8?B?SGl5ZjZQVjJNbzZuT1JacndpWXVUTUZyZHpLMjdUSUN6MURObGxuNEFncy9J?= =?utf-8?B?U2FzVFhrTVZzQUI2TGUzcVZjUnU5cEgwZFlOYkhjWkpmb3NwanVoSUcyaXBu?= =?utf-8?B?MDFrN3ZhVExxSm96NEtDc1Y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AQWIqG0dHC+El1eiPffrGNx3yFj6Vj26zKarhJQRL/2qhuuVbyoY06cAz7/hfsrtgbMD0721n6aj8VbA2WpPlt63EuWeUCt6I2XEQnqADyjW5jMlWoPMqshkw6JhoI0BA/4wgJGLzu8SeYbcApcCXVCbmeSSsi+qlh+r3Vi9y6jm2wdNBNxByar2KCBvdo+YD0dPM27vtVvYmBmDfnNu1gepiIRZKYEvdULUFfp97+uqK/kihqiBtDIzIvROQ1SPIF4tdUZbWTz1EKodyKn4avZ9LlXkco4b+iBXGRXx9fYLekedS1PT2lryjF49U6HoQgmjyUGRNe0TMjk5NLsVFMze5IUVPuxtNQhkBxWNU2Z3PLnuvvcL7civB8J5JRKgDaua5eWt8vH/5aPih+tHhVpuhzmuOLk74yUyBOjDC7ebnPxyGpxFKRtr3/8u7i9KYg==; 5:LSk7cbXeOzDaLEA0Ky8Ny4rkv33GAY2J2qs8Gd4FGdqz6I4xTM2KplUUoPXgIm6/aRM/uAylxG/tKvfLYwLnz/xg++Ckf+zLZFaFW5glfDYH5fTzdSsvS0/wsR3O+j4NJoN1vjlLsHgOQ2my5Gq2yj0N/lqQ0A08B80+OBkeIY0=; 7:7uaAVDpeoMaXS5hT0tu9M+h9NwT24PrZe6BRJBnMWbtqa64QXVqbzkZnGmAKKftyBzb8DP3k2YjqK55k//h+ZvG49l2GqvjJZDx+SSCuKFLIQt5xC85H+N51lMvt4A61/OdTiWYMTucDvumrfa5WpT99Qf3/m33NzGVV0Cg+FbgUYEGmIn+qmARsWErN+nMiK5F1jAczHU5bafb/8dnlRF8yP9fLt2YoOROdU6TsuBmqidAdhmYeDVH1BrfNzJM4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2018 07:21:58.8849 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9401f5ad-64c2-4a5e-322a-08d600ed7715 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 Subject: Re: [dpdk-dev] [PATCH v2 00/12] preparing l2fwd for eventmode additions 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, 13 Aug 2018 07:22:07 -0000 Hi Bruce, Pablo, If there are no more issues about the approach, can you review the patches and give the feedback? Please do note that this series doesn't add any event mode specific code. That will come as a different patch series after incorporating Jerin's comments. Thanks, Anoob On 02-08-2018 13:49, Ananyev, Konstantin wrote: > External Email > > Hi everyone, > >>>>> In order to get this series accepted, we need more discussions >>>>> with more people involved. >>>>> So it will miss 18.08. >>>>> >>>>> It can be discussed in a more global discussion about examples maintenance. >>>>> If discussion does not happen, you can request it to the technical board. >>>>> >>>> Event dev framework and various adapters enable multiple packet handling >>>> schemes, as opposed to the traditional polling on queues. But these >>>> features are not integrated into any established example application. >>>> There are specific example applications for event dev etc, which can be >>>> used to analyze an event device or a particular eventdev adapter, but >>>> there is no standard application which can be used to compare the real >>>> world performance for a system when it's using event device for packet >>>> handling and when it's done via polling on queues. >>>> >>>> The following patch submitted by Sunil was looking to address this issue >>>> with l3fwd, >>>> https://mails.dpdk.org/archives/dev/2018-March/093131.html >>>> >>>> Bruce & Jerin reviewed the patch and suggested the addition of helper >>>> functions to abstract the event mode additions in applications, >>>> https://mails.dpdk.org/archives/dev/2018-April/096879.html >>>> >>>> This effort of adding helper functions for eventmode was taken up >>>> following the above suggestion. The idea is to add eventmode without >>>> touching the existing code path. All the eventmode specific additions >>>> would go into library so that these need not be repeated for every >>>> application. And since there is no change in the existing code path, >>>> performance for any vendor should not have any impact with the additions. >>>> >>>> The scope of this effort has increased since the submission, as now we >>>> have Tx adapter as well. Sunil & Konstantin had clarified their >>>> concerns, and gave green flag to this approach. >>>> https://mails.dpdk.org/archives/dev/2018-June/105730.html >>>> https://mails.dpdk.org/archives/dev/2018-July/106453.html >>>> >>>> I guess Bruce was opening this question to the community. For compute >>>> intense applications like ipsec-secgw, eventmode might be the right >>>> approach in the first place. Such complex applications would need a >>>> scheduler to perform dynamic load balancing. Addition of eventmode in >>>> l2fwd was to float around the idea which can then be scaled for more >>>> complex applications. >>>> >>>> If maintainers doesn't have any objection to this, I'm fine with adding >>>> this in the next release. >>>> >>>> Thanks, >>>> Anoob >>> It is important that DPDK has good examples of how to use existing >>> frameworks and libraries. These applications are what most customers >>> build their applications from and they provide basis for testing. >>> >>> The DPDK needs to continue to support multiple usage models. This >>> is one of its strong points. I would rather leave existing l2fwd >>> and l3fwd alone and instead make new examples that use the frameworks. >>> If nothing else haveing l2fwd and l2fwd-eventdev would allow for >>> performance comparisons. >> Unlike other applications example, there wont be any change in packet >> processing functions in eventdev vs poll mode case. Only worker >> schematics will change and that can be moved to separated files. >> something like worker_poll.c and worker_event.c and both of them >> use common packet processing functions using mbuf. >> >> The only disadvantage of having separate application would be packet >> processing code duplication. Which is non trivial for l3fwd, IPSec >> application IMO. > Personally I am ok with original design suggestion: > keep packet processing code common, that would be used by both poll and event modes. > We could just have a command-line parameter in which mode the app will run. > Another alternative - generate two binaries l2fwd-poll, l2fwd-event (or so). > Konstantin >> # Are we fine with code duplication in example application like l3fwd and >> IPSec? >> # if yes, Are we fine with keeping l2fwd _as is_ to reduce the >> complexity and l2fwd-eventdev supports both modes wherever possible? >> >>> As the number of examples increases, probably also need to have >>> a roadmap or decision chart to explain the advangage/disadvantage >>> of each architecture. >>>