Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2889439rdh; Mon, 27 Nov 2023 01:07:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlpcdyrDKGwd7bBnJcN/51FKk/2GKbSX3W6vFp7BPIDE94qEScRwRgvMKMd7iuHHpPslJW X-Received: by 2002:a9d:6747:0:b0:6d8:298f:e3c4 with SMTP id w7-20020a9d6747000000b006d8298fe3c4mr2135028otm.31.1701076046281; Mon, 27 Nov 2023 01:07:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701076046; cv=none; d=google.com; s=arc-20160816; b=v+BuILCaXXhjPB/ZjRVEJinWS06H17WRugm6tQyHCj+PdDScv2cxy+QRwbBUpRY7tj zHfaRVet9QkDlFu5EzrsnkBTbK5RqTcD32SZahkDyOo7gFhHJ5uXwFT+AyJpQCXDbxQM REA0JhGLCA1zTqR3Jawqm/ViwvJs7voqmOYGzAorBziEnBS3rGnLhTyoHwdIpKUTz/xk 8jgK8Ber471iqo2l86WHtU5N9q2YeQF45QPonlWsX9gq5/48meFRFeX8anepex70/1ss er4DCSb0MuTm+AfVmwkGNIl9+pxCqFG8nqLH/o9IHHRuZH0i2F0Qmmoh1M6j/ageV2Ub Ssfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HI0TOtQb9c447DbOQLQ1/RG9mFnY5yOZxPwrai0TcrQ=; fh=WtXYo68b3LbX0VOxQytQiJpeoqaxRRsHfzoIIAg3Ids=; b=ZNmQCJG28S+DI/LbTBgtTTDhmofXfn7vDH9yrDJmzVvuUXdOLSGQEWNe7q6J3Qa6iM yX0Uxx6DWllZ1mnbI/xx0OTe6LwBVD+EPBJ7OvqP0Ob3S4XGph7rmp836qGx4Qf6kh7F DmeGZqJxxvBQc5miP6keSKak6PpAtBroX01G4rF25eukgcQ1koSfV6ZaM23F2O5yBKVN Ugh6+4ruFOxtJMtfOJaK6tHclvA81KvjQ3nQSDd8K0cF2FYMMG9bC1Fqgv2zspWLZF9j 1Z8VOp4fgsNQML+ShKJKJT4ZDxLKs5S0loE1mEr5qLRnAxj3QmQjA5ddl2I/XejMV2wh vhhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=sNcgMdc+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id k32-20020a634b60000000b005bd335981e2si9236310pgl.678.2023.11.27.01.07.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 01:07:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=sNcgMdc+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id AD4FC803463E; Mon, 27 Nov 2023 01:05:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbjK0JFV (ORCPT + 99 others); Mon, 27 Nov 2023 04:05:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232721AbjK0JFL (ORCPT ); Mon, 27 Nov 2023 04:05:11 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8EDC10F0 for ; Mon, 27 Nov 2023 01:05:01 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a00a9c6f283so527832566b.0 for ; Mon, 27 Nov 2023 01:05:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1701075900; x=1701680700; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HI0TOtQb9c447DbOQLQ1/RG9mFnY5yOZxPwrai0TcrQ=; b=sNcgMdc+JCKXIKSMPFi6NUk/N15L2yczsAzRIJsgqu0S5aOv1m8G6qIpAFiX8tMjVC 4Wy8HhQDJ879kYAUKR+zPMNels22XSb3JzaUFxs2ZfCKcxEbvsivLWPY1ihbVXI2nw0q fa+YldVKngt8Ze08ZAkTmoU5Q3wIfQren2nY0/aTfEZNoBntbpRr/BmKKK+11CBiq+Ou 3GwmEOMRz42Fc10SLihyW3D4wbdBrpKWt1b9PPDPgWbw3hgCT/LQpmi9vwoBwsXLHQZ9 S3VA4peeeURBmD9DdudAEHZM/aJQ9ZnLTRQziZhiu5+R5h6j3xB67KKcl503gFv10SAX Mkow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701075900; x=1701680700; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HI0TOtQb9c447DbOQLQ1/RG9mFnY5yOZxPwrai0TcrQ=; b=eZYdRvycHH8o1ptMnr7WjIsM1ORZbFcFkFKALFROAEQv8NvKvt3JDW2scXPqVv6unk d0VNBj0qTOSJcKkGCN3wQDpTlI0TnaoP+DciYG7WCAaF49esN/tX54FQGtDzfhvK9byI SuenudtZYVC1vSE6XGoUqFl/LUCQgBcc+WXCrPRO4s6ltvRUCzUvLy/YXBBenEb3qXXk qju1cGp++tAiKOchxesaYskwnkAvqBMI3vKTqsQ7egOjYl/3hMR73x4eN0OP7b8NBgjR jNGEpx8Dsx8Rk2CtYjPIdIFSTqoe9cqqZoVfUoy9o+L6tritnzOZUHh+QPnEV1MTN89R lkdg== X-Gm-Message-State: AOJu0YxwTNsTWkbVBOODBBFn6XG54XXk1XcygNqmThE4O5VggtkFiCm3 8jO9vOLNbK30Sr7lH43svWLY3g== X-Received: by 2002:a17:906:9d05:b0:9ff:6257:1b4c with SMTP id fn5-20020a1709069d0500b009ff62571b4cmr6439371ejc.37.1701075900268; Mon, 27 Nov 2023 01:05:00 -0800 (PST) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id j10-20020a170906050a00b009fc54390966sm5508751eja.145.2023.11.27.01.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 01:04:59 -0800 (PST) Date: Mon, 27 Nov 2023 10:04:58 +0100 From: Jiri Pirko To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexander Duyck , Yunsheng Lin , David Christensen , Jesper Dangaard Brouer , Ilias Apalodimas , Paul Menzel , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 00/14] net: intel: start The Great Code Dedup + Page Pool for iavf Message-ID: References: <20231124154732.1623518-1-aleksander.lobakin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231124154732.1623518-1-aleksander.lobakin@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 27 Nov 2023 01:05:37 -0800 (PST) Fri, Nov 24, 2023 at 04:47:18PM CET, aleksander.lobakin@intel.com wrote: >Here's a two-shot: introduce Intel Ethernet common library (libie) and >switch iavf to Page Pool. Details are in the commit messages; here's >a summary: > >Not a secret there's a ton of code duplication between two and more Intel >ethernet modules. Before introducing new changes, which would need to be >copied over again, start decoupling the already existing duplicate >functionality into a new module, which will be shared between several >Intel Ethernet drivers. The first name that came to my mind was >"libie" -- "Intel Ethernet common library". Also this sounds like >"lovelie" (-> one word, no "lib I E" pls) and can be expanded as >"lib Internet Explorer" :P >The series is only the beginning. From now on, adding every new feature >or doing any good driver refactoring will remove much more lines than add >for quite some time. There's a basic roadmap with some deduplications >planned already, not speaking of that touching every line now asks: >"can I share this?". The final destination is very ambitious: have only >one unified driver for at least i40e, ice, iavf, and idpf with a struct >ops for each generation. That's never gonna happen, right? But you still >can at least try. >PP conversion for iavf lands within the same series as these two are tied >closely. libie will support Page Pool model only, so that a driver can't >use much of the lib until it's converted. iavf is only the example, the >rest will eventually be converted soon on a per-driver basis. That is >when it gets really interesting. Stay tech. The world would not be the same without intel driver duplicates :/ Out of curiosity, what changed? I always thought this is done for sake of easier out of tree driver development and old device support dropping.