From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0084.outbound.protection.outlook.com [104.47.33.84]) by dpdk.org (Postfix) with ESMTP id BF255235 for ; Sat, 18 Aug 2018 11:57: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=Dr5p7ltdoJawPVmFyjpaG6Kzo90zrWcsVgFlYZcfLdc=; b=DMjHIsOxp5rwxXcqH+iNeqrepAsCQ6xqCi1f5VrcoXjRrWBqzNDUlaO1LcuufN8EbvtgMzjwDAO80hh/2e1ka4NpuG8oR0M8X8TAJv/2VSJaws8xZwXUQpUB40pFjc3xma+QRbulI2Up9rKFzxUU6hOZOpOcWNykBRHiwHmbLkc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [IPv6:2405:204:d304:3387:7872:4c88:2493:98ac] (2405:204:d304:3387:7872:4c88:2493:98ac) 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.1038.25; Sat, 18 Aug 2018 09:57:47 +0000 To: Bruce Richardson Cc: Thomas Monjalon , "De Lara Guarch, Pablo" , "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> <20180813092705.GA11396@bricha3-MOBL.ger.corp.intel.com> <0c162ae7-ebf7-38fe-ea0b-2d18769ddb7d@caviumnetworks.com> <20180814103313.GA12412@bricha3-MOBL.ger.corp.intel.com> From: "Joseph, Anoob" Message-ID: <7f529e8f-a61f-3950-265e-8923efc61743@caviumnetworks.com> Date: Sat, 18 Aug 2018 15:28:13 +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: <20180814103313.GA12412@bricha3-MOBL.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:d304:3387:7872:4c88:2493:98ac] X-ClientProxiedBy: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac850534-7d84-4f68-6673-08d604f11129 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4910; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4910; 3:Ic7qnhMqcPRuOo9KMNdl29MY9EifkB3wp7Fnue68oR2E5EJldH/6JGNxJnlIUCB/+ARP6ClkrY0V4uzcSFH7b9fH4vSfk6IKkdJUVJnhjh4+3FFQjijZHIE+K2eSV6PeE4mfxequkjS4wqlgINFmenp7LTgZGAGGMefI7UIm/W5fd1scl41Bl7+eVNj8MVxF5Hf+gdgPdGTaoOon3FN+cZgE211hrRpNJ6l2ACiojjIhUAM4buDAeB+Tdem5gbW7; 25:fcZ0gzLWejbKboITz6j0TAs+yCmmCAZhySZr0R4cV4/JxxJcitmPOslumYMDo7dk+CxPdofSq/WuC7hjidRfsc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M5IPKwa56B4/WlthfbcxBJsdp2n1r5G1uKyL42TVAiDhUSfI4tebWad7zQqumoYQBu18SIeKUxWOChI6aQzrcYGu44ZyuPBBQyI/GmBdj1ZDyyYjj0Ic=; 4:3ujUkqJrIc/JjBzNvktGBCDpapRCIsBM6TCHVsT0G7c0aybh3bT1A/SUHDBQquU4x5Tb6LVXefTmo4fVKBPJDBhbPmtXit3H3QsLt4ymFq/O2QQ8kKDDCPby4oJMNxY8JaZVrCfbYaU24u1RdgMsdMPsrYCYyOL0x9bJjW0AVeP1LAPdWqPVAorT8g8ZedOBg1qlTkgtzG4m7Z3cNpaPfSHLzxR6v5IyFCa8Aw3m9xNxhK+XDHPZ67rLZjhakz0A6sc2Rex+11RduXTycHgeBkWsvd3gKraZw7QZiHq/zaZY3DfY9WFGBiKj7rbGu2y3 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)(8121501046)(5005006)(93006095)(3002001)(10201501046)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:SN6PR07MB4910; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4910; X-Forefront-PRVS: 076804FE30 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(366004)(396003)(346002)(376002)(39850400004)(53754006)(52164004)(189003)(199004)(50466002)(64126003)(7736002)(105586002)(305945005)(97736004)(81156014)(8676002)(81166006)(25786009)(3260700006)(6486002)(8936002)(106356001)(229853002)(966005)(316002)(58126008)(478600001)(68736007)(54906003)(72206003)(53936002)(6246003)(31686004)(4326008)(6306002)(14444005)(76176011)(446003)(16526019)(186003)(2906002)(93886005)(476003)(47776003)(11346002)(65956001)(486006)(6116002)(31696002)(52116002)(67846002)(2486003)(52146003)(52396003)(23676004)(65806001)(230700001)(6666003)(46003)(1706002)(6916009)(42882007)(36756003)(65826007)(5660300001)(53546011)(386003)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4910; H:[IPv6:2405:204:d304:3387:7872:4c88:2493:98ac]; 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?MTtTTjZQUjA3TUI0OTEwOzIzOmFjaWR1VlpIRVdoeHJUYm5hYldWRzE0eElz?= =?utf-8?B?MHVpSjFaRkQzbkI0M25ZTU1UK0d3OS9jeVIrWHpyUVFydkFpOWV0RFd0emVs?= =?utf-8?B?Tkh2bm9DUjlUR043blpwRUtWMnFPNEs2aDNsaTBvVUx2TkJIT3ZjZjF1ZlFY?= =?utf-8?B?VGdDN1lnZjBoYXpPRTFKbTl3eU92b21YQlFZTUNqWU9jaE9rM3hXQVRJcVdz?= =?utf-8?B?S1VBdmp5TG9DU0RMR3pXWG4wV29JZ2JFL0FMMlNvQnVDS2tHMW0xU0hGbThx?= =?utf-8?B?NUhWc2Z5d2N4THZIL1YrOXg3cnY3Y2ErdHVqUzFsZUo0d0hCRDgvQ2FaRjcv?= =?utf-8?B?VEVJcUFsdHpFQ3QzOFpjSjVER2JUSDVoS0U0cDNqMnJwWmZiN3Y2bDMzSCsv?= =?utf-8?B?QnVWNk4xOTU1YnNITk1DYUF5UDBZOHo5UHM1T1NVeFQ1TUlBUlA5Z0dwYjJx?= =?utf-8?B?VVNPRUxLb2RuMkVSWXd5QTdhUDUxbkVZNzlDYkJDU1ZYbEg1elQvSjJ3dGlj?= =?utf-8?B?MDBZSnNNRCtrb1dMc1RFdHBqM3RMaGRxbG9UM2RtMHo1QUNrS3pmS2xsYy83?= =?utf-8?B?ajRRaGZNV2ZlSXJHRXpzWUsrbkU4UEZZTHJ5aEl5blJYS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CZ1glhmYr/D7P8h4lKr3rnRb12o/ewtxmUuxSVxJtB79L67epQyqSC5d7IcHPG+JQvTgRi0FqMzG4IT2+RFBHYgt7T+yXJXB8fdELgIjQPo0tOZDem8ZTlv21DJwJfyyYs6rZDvD2bqgPiKChYy1SJy2WhqujTgijc4k9Aodh5iKjoo8IsyVhHm7uLBlFI0VizBjolhcwOFDiNTdK2TESCu8DTf84/bXEJdYJ/LyvVxtKLzj8Ubb/vI1esw8r2Ydcewc2Yon7VIAyUUHj/8TeIfq8VB4vihrIbitdnz21gYySJvp9oY1AEv4c31Q353JViuVsY86EWMGuPw2cGpp0PsId3lCNig9ujI4rZlTACgjzAfi1xoGg/SV9/JYgPZpg7tUWMMikVymqL5i46mcEaJh/ut2hzkuVhTdrUBbgqIiHR7NudSSSzo9/jsHvx3MVrE0H2Ow==; 5:SUeOheBJVBmPZyn2PFXo/tzzXFQot5pGnQRcyt6vHKRwjOEHf5tCE1bnGxsbKW6eIVorhndD1Sjwv1fvYT6FwU7fIPVJp5Co9GvWoG8JGqs7YmWTNHDRhW0L9HfGXiB3TLCghagV+5atlcHMk4O2zt2wGaVl63eIMuJY4pLIGRw=; 7:WE136/1nvnBHS3PmYY5GlXO4Ptb6pd/2ZnGhaNtne6yG0/rFTmsRdewAp0gkimlHIwLyOyVnsfsdS5oNSnRkN4vBheGw6NtvGmoNYcUBBtij8esReyJbNiLJ3JbjPqxK9wmlc498WmPq94HN5RKtWeCaSr3jcMhJkg3ybamkrqb0qXSh9YKjJzcyqlpcioKxIMFyu8HsOMogbpg3jIJ+/kOiVJTlawm0ZG6GxFm0VKZY7m+IRR98f5zTnnGDgXom SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2018 09:57:47.8089 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac850534-7d84-4f68-6673-08d604f11129 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 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: Sat, 18 Aug 2018 09:57:57 -0000 Hi Bruce, On 14-08-2018 16:03, Bruce Richardson wrote: > External Email > > On Mon, Aug 13, 2018 at 09:29:01PM +0530, Joseph, Anoob wrote: >> Hi Bruce, >> >> The reason why l2fwd was chosen was to allow everyone to chip in their ideas >> while preparing the framework. >> This framework would be extended to other applications, hence needed enough >> inputs before expanding to complex applications. If your suggestion is to >> make l3fwd event driven first, I'll start looking in that direction. > Seems good to me, if others don't have an issue with it. > >> As for l2fwd, I'm fine with moving event-mode additions to a new app. But >> with the present approach, the app would run in both event mode and poll >> mode. >> >> Your thoughts on renaming the existing app to l2fwd-poll and the proposed >> app as l2fwd? >> >> Thanks, >> Anoob > I'm not sure about the name "poll", I think "ethdev" and "eventdev" should be > the suffixes, if we want to move in that direction. With new adapters, like crypto adapter, event device will be able to handle multiple devices at the same time. It will be able to abstract not just eth device but other devices too (crypto for example). For apps like ipsec-secgw, crypto also would be abstracted with event-device. So what should be the ideal naming convention taking into account all that? Using "eth"& "event" won't fit in for such cases. Presently, mode was defined by the way packets were submitted to & received from the device. With poll mode, device(eth, crypto etc) would get packets directly from the core & the core would then poll for completion. In case of event-mode, event device handles this scheduling. Event device would submit (to all devices) and receive packets (from all devices). Core need not poll on the device, in that case. Hence the naming... Your thoughts? Anoob > However, my preference would be to leave l2fwd as-is, and to have a comment > at the top of the source file, and note in the documentation along the > lines of: > > "This example demonstrates basic l2 forwarding using ethdev primitives. To > see the same use-case implemented using event-based primitives, see the > 'l2fwd-eventdev' example". > > As I said before, my main concern is to keep the basic examples short and > readable. > > /Bruce > >> On 13-08-2018 14:57, Bruce Richardson wrote: >>> External Email >>> >>> On Mon, Aug 13, 2018 at 12:52:19PM +0530, Joseph, Anoob wrote: >>>> 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 >>> My main concern is with l2fwd, rather than l3fwd, which is already fairly >>> complicated. I could see l3fwd being updated to allow an eventmode without >>> too many problems. >>> >>> With l2fwd, the only issue I have is with the volume of code involved. >>> l2fwd is currently a very simple application which fits in a single file. >>> With these updates it's no longer such a simple, approachable app, rather >>> it becomes one which takes a bit of studying a switching between files to >>> fully understand. The data path is only a very small part of the app, so by >>> adding an event-based path to the same app we have very little code saving. >>> Therefore, I think having a separate l2fwd-eventdev would be better for >>> this case. Two simpler to understand apps is better than one more >>> complicated on IMHO. >>> >>> My 2c. >>> >>> /Bruce >>> >>>> 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. >>>>>>>