From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 994A1A0525; Fri, 21 Feb 2020 16:57:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DEB171BFAC; Fri, 21 Feb 2020 16:57:03 +0100 (CET) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id 54C591BFA9; Fri, 21 Feb 2020 16:57:02 +0100 (CET) Received: by mail-io1-f68.google.com with SMTP id k24so2871121ioc.4; Fri, 21 Feb 2020 07:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KxtsRf+DDTdo9g7lL6SpmfCvma7Hu3FkN9+V6XO2s48=; b=PhdHCcK7NasFm9tOYreEMJT5GZfCpn8fhWV3MWqv+WAG19GscIjqWQhCCv5WhtHQzR 1F1CSIhXTizAmr+JdIKWcITQxjXVqeRd1nx5QRby1+PBTdGOLU3hWuRywp18SxRf528z xAv9HASwwDuBam7ysEqQi+iAL3giHTCKV5tlyFeltRUedVUfWmfkWFcWt85drYAxLeh4 zLa+RrbTF6+tpOqDjP/i6vRPUYw3subZv16YWZlUASOZvaUJ2CaXHnoEkCb+QqQzfGAE 2FnjQftPfjdMbE2u3ujnn2qRtxaVCvyErTy+4IPBVlj4aYKIAYQeHKe2iVVPysp6eRww QmkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KxtsRf+DDTdo9g7lL6SpmfCvma7Hu3FkN9+V6XO2s48=; b=YK8mkuNlmHwAH8Apim/9ruVr/0OlYhiggx3mDqRFGicAZ1m6Aro+AW2zrL6jtu17FM bYlx/dY9szcBEQUDX4H5Co6EZZms4/KjgZrfsL9GtLh4l6RyGgqd1oUjYyPQGvz76OaC WlH96enGXpSo7riuxWyTOoMLKXwQFRuZpplxkktsGxsl0UKAGWosuzvs3cI2S6vbVhVo 7YniOTB7TN5oDPyCVCe6KGNADpo+IIWqbdqR28XxkJEFGqDOp0RwpmVj4eyjKz5IrFXl KMIkkp5IM6Q/9D8zZgYUX7kIleHKajcSfvsAhCpVcMQbjUwGMpN8URKuuW07PZglaKoM +Z/g== X-Gm-Message-State: APjAAAWWfd/o8Po9slL70DM3M9WSO8iASWrqxf0sk6SccQm/chBiQVKi S6WoPuqukR2MsO3ip9m24CsB3bvLoWZGuN4pJtU= X-Google-Smtp-Source: APXvYqzR4qXQuzNcCUzf3UlZiPfArsSpLwApcdngVjU8CWINv1QAYPyP0kYgwO3C3No/xLIlaql5Dgfr+lqL6pilqSk= X-Received: by 2002:a5e:8e4d:: with SMTP id r13mr29336159ioo.60.1582300621418; Fri, 21 Feb 2020 07:57:01 -0800 (PST) MIME-Version: 1.0 References: <20200131170201.3236153-1-jerinj@marvell.com> <8553959.CDJkKcVGEf@xps> In-Reply-To: <8553959.CDJkKcVGEf@xps> From: Jerin Jacob Date: Fri, 21 Feb 2020 21:26:44 +0530 Message-ID: To: Thomas Monjalon Cc: Jerin Jacob , Ray Kinsella , dpdk-dev , Prasun Kapoor , Nithin Dabilpuram , Kiran Kumar K , Pavan Nikhilesh , Narayana Prasad , nsaxena@marvell.com, sshankarnara@marvell.com, Honnappa Nagarahalli , David Marchand , Ferruh Yigit , Andrew Rybchenko , Ajit Khaparde , "Ye, Xiaolong" , Raslan Darawsheh , Maxime Coquelin , Akhil Goyal , Cristian Dumitrescu , John McNamara , "Richardson, Bruce" , Anatoly Burakov , Gavin Hu , David Christensen , "Ananyev, Konstantin" , Pallavi Kadam , Olivier Matz , Gage Eads , "Rao, Nikhil" , Erik Gabriel Carrillo , Hemant Agrawal , "Artem V. Andreev" , Stephen Hemminger , Shahaf Shuler , "Wiles, Keith" , =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , Jasvinder Singh , Vladimir Medvedkin , techboard@dpdk.org, Stephen Hemminger , dave@barachs.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [RFC PATCH 0/5] graph: introduce graph subsystem 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Feb 21, 2020 at 4:40 PM Thomas Monjalon wrote: > > 21/02/2020 11:30, Jerin Jacob: > > On Mon, Feb 17, 2020 at 4:28 PM Jerin Jacob wrote: > > > On Mon, Feb 17, 2020 at 2:08 PM Thomas Monjalon wrote: > > > Thanks for starting this discussion now. It is an interesting > > > discussion. Some thoughts below. > > > We can decide based on community consensus and follow a single rule > > > across the components. > > > > Thomas, > > > > No feedback yet on the below questions. > > Indeed. I was waiting for opininons from others. Me too. > > > If there no consensus in the email, I would like to propose this topic > > to the 26th Feb TB meeting. > > I gave my opinion below. > If a consensus cannot be reached, I agree with the request to the techboard. OK. > > > > > > 17/02/2020 08:19, Jerin Jacob: > > > > > I got initial comments from Ray and Stephen on this RFC[1]. Thanks for > > > > > the comments. > > > > > > > > > > Is anyone else planning to have an architecture level or API usage > > > > > level review or any review of other top-level aspects? > > > > > > > > If we add rte_graph to DPDK, we will have 2 similar libraries. > > > > > > > > I already proposed several times to move rte_pipeline in a separate > > > > repository for two reasons: > > > > 1/ it is acting at a higher API layer level > > > > > > We need to define what is the higher layer API. Is it processing beyond L2? > > My opinion is that any API which is implemented differently > for different hardware should be in DPDK. We need to define SIMD optimization(not HW specific to but architecture-specific) treatment as well, as the graph and node library will have SIMD optimization as well. In general, by the above policy enforced, we need to split DPDK like below, dpdk.git ---------- librte_compressdev librte_bbdev librte_eventdev librte_pci librte_rawdev librte_eal librte_security librte_mempool librte_mbuf librte_cryptodev librte_ethdev other repo(s). ---------------- librte_cmdline librte_cfgfile librte_bitratestats librte_efd librte_latencystats librte_kvargs librte_jobstats librte_gso librte_gro librte_flow_classify librte_pipeline librte_net librte_metrics librte_meter librte_member librte_table librte_stack librte_sched librte_rib librte_reorder librte_rcu librte_power librte_distributor librte_bpf librte_ip_frag librte_hash librte_fib librte_timer librte_telemetry librte_port librte_pdump librte_kni librte_acl librte_vhost librte_ring librte_lpm librte_ipsec > Hardware devices can offload protocol processing higher than L2, > so L2 does not look to be a good limit from my point of view. The node may use HW specific optimization if needed. > > > > > In the context of Graph library, it is a framework, not using any of > > > the substem API > > > other than EAL and it is under lib/librte_graph. > > > Nodes library using graph and other subsystem components such as ethdev and > > > it is under lib/lib_node/ > > > > > > > > > Another interesting question would what would be an issue in DPDK supporting > > > beyond L2. Or higher level protocols? > > Definitely higher than L2 is OK in DPDK as long as it is related to hardware > capabilities, not software stack (which can be a DPDK application). The software stack is a vague term. librte_ipsec could be a software stack. > > > > > > 2/ there can be different solutions in this layer > > > > > > Is there any issue with that? > > > There is overlap with the distributor library and eventdev as well. > > > ethdev and SW traffic manager libraries as well. That list goes on. > > I don't know how much it is an issue. > But I think it shows that at least one implementation is not generic enough. I don't think, distributor lies there because of eventdev is not generic. In fact, SW traffic manager is hooked to ethdev as well. It can work as both. > > > > > > I think 1/ was commonly agreed in the community. > > > > Now we see one more proof of the reason 2/. > > > > > > > > I believe it is time to move rte_pipeline (Packet Framework) > > > > in a separate repository, and welcome rte_graph as well in another > > > > separate repository. > > > > > > What would be gain out of this? > > The gain is to be clear about what should be the focus for contributors > working on the main DPDK repository. Not sure how it can defocus if there is another code in the repo. If that case, the Linux kernel is not focused at all. > What is expected to be maintained, tested, etc. We need to maintain and test other code in OTHER dpdk repo as well. > > > > > My concerns are: > > > # Like packet-gen, The new code will be filled with unnecessary DPDK > > > version checks > > > and unnecessary compatibility issues. > > > # Anything is not in main dpdk repo, it is a second class citizen. > > > # Customer has the pain to use two repos and two releases. Internally, > > > it can be two different > > > repo but release needs to go through one repo. > > > > > > If we are focusing ONLY on the driver API then how can DPDK grow > > > further? If linux kernel > > > would be thought only have just the kernel and networking/storage as > > > different repo it would > > > not have grown up? > > Linux kernel is selecting what can enter in the focus or not. Sorry. This sentence is not very clear to me. > And I wonder what is the desire of extending/growing the scope of a library? If the HW/Arch accelerated packet processing in the scope of DPDK this library shall come to that. IMO, As long as there is maintainer, who can give pull request in time and contribute to the technical decision of the specific library, I think, that should be enough to add in dpdk.git. IMO, we can not get away from more contribution to dpdk. Assume, some set of library goto pulled out main dpdk.git for some reason. One can still make new releases say "dpdk-next" to including dpdk,git and various libraries. Is that something, we are looking to enable as an end solution for distros and/or end-users. > > > > > What is the real concern? Maintenance? > > > > > > > I think the original DPDK repository should focus on low-level features > > > > which offer hardware offloads and optimizations. > > > > > > The nodes can be vendor-specific to optimize the specific use cases. > > > As I mentioned in the cover letter, > > > > > > " > > > 2) Based on our experience, NPU HW accelerates are so different than one vendor > > > to another vendor. Going forward, We believe, API abstraction may not be enough > > > abstract the difference in HW. The Vendor-specific nodes can abstract the HW > > > differences and reuse generic the nodes as needed. > > > This would help both the silicon vendors and DPDK end users. > > > " > > > > > > Thoughts from other folks? > > > > > > > > > > Consuming the low-level API in different abstractions, > > > > and building applications, should be done on top of dpdk.git. > > >