Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2456115rdb; Wed, 4 Oct 2023 01:26:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEK99RF1UT/o4Xf470KdMHYIxlgWVTOzAfS0CidSySnyx5ZqdeSDyLYqnbKx7keQBPkthuk X-Received: by 2002:a17:90a:cb8b:b0:261:2824:6b8c with SMTP id a11-20020a17090acb8b00b0026128246b8cmr7712048pju.13.1696407960807; Wed, 04 Oct 2023 01:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696407960; cv=none; d=google.com; s=arc-20160816; b=lxvhl2/h55XhwX97CIlMCuIZTHeMX4muiQIc3KMY4qOi3Dj3JdrNCe69r5ZiLyO8X4 UgSrUN0CZ7E3iOrNMCbNiGQsi0vntkGMEpHcVDoW39SbA8LWQGWC16yQaIUtklDLB4Gd ao8qgRae+1iSUZP+Nj3BWGluXIxes2RQ3b2rr9Y2w4xVeO0R88vb88BqcOuVgGxHXOD/ j0BQ/FieTx53GU/5xdNLbiVIiVQ0kayPVjdK/Ct0okh3BpFI7CtUcw0SrrYrxsvDU8xL 3bzdi+xguIuG4H8cl+MTO4mR4LZ/Rv4H+iDXZCPTBKOJM/mkO/mQM4rC1vVIsqaH+Aoc lfyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=aqtZu7OFev7NROEvHGfYU30sQ+IlAUffS+3M2Pl5nF4=; fh=F7E2kQ9iIAv/dcR3UUKFf8NMHEShxBNzxOQIPv0HjA0=; b=lADiQgkcjwuS3INGQ1V76fuYT7bDjg8NvYg1CwQ4xFMIVFUYGmyu/+G5rYPNEBjGhQ 1MmAiMHM5cczuF6A3zvdNy38vE5xTv9t0aSBX0FAqvj34asvclo8nyPxEDPSfVV8EAE+ RRevDaUCI+RZ42HPWEicXPC6TJLVthvtkC5VUv3mbTn+fuwxOKHEyM96jgxwxnq7f9d9 +x68himBj7TxqGTyEdFYb8uAKfDDYvDTGg47A5E2QNX55EAnpoNuyZuiuOmCoKRsYKPW EwQUatXnZO6O9eYE2xmuXLkyV/aVuaf4vi0G2BF3P8oEuxwFuqs/+rolFpQkIoNfD0lF Hhmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=QjhymVHW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="P+F31/Ja"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c128-20020a633586000000b00585a02550dfsi3334623pga.117.2023.10.04.01.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:26:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=QjhymVHW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="P+F31/Ja"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 68F3880752AA; Wed, 4 Oct 2023 01:25:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241105AbjJDIZ3 (ORCPT + 99 others); Wed, 4 Oct 2023 04:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232743AbjJDIZ2 (ORCPT ); Wed, 4 Oct 2023 04:25:28 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BDFA6; Wed, 4 Oct 2023 01:25:25 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 563C15C02AC; Wed, 4 Oct 2023 04:25:24 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 04 Oct 2023 04:25:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1696407924; x=1696494324; bh=aq tZu7OFev7NROEvHGfYU30sQ+IlAUffS+3M2Pl5nF4=; b=QjhymVHWCqusF8IFqT ikZjK6+FYk62zzoOY02+GtlFMMYgrPC8q8moBEWyctTt6AEIPTbXPogUOAQlQaU1 NFGkH9LjZBkt1/oIQe6NARo3fCY26gdZqXsC/3Ir/spAs7RXGVAy8/lzjY0+XDda Gu0dPduOCOdBizXgePcKUDorKki5BZAg+zKNiZN0BXI0oW2VbDXyQm1dEXnZl9G7 ctuLq/yh4R8hodREyyuNZE+2IQU/rEZQPV47uBGDAjb3hqr3Chwv3pJgd85gqkrC wkFzWSISTswJHDyZASe/5WN58Y65xx2XgstA7+PG+Qd3VzX8+AcZgRaAQMCUQbRm sz7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696407924; x=1696494324; bh=aqtZu7OFev7NR OEvHGfYU30sQ+IlAUffS+3M2Pl5nF4=; b=P+F31/JaounfPvJtB8ifQo9UlK2wY VDzT07Umo/inHQhOv+N20tod9dXqxMBQtMyWQtTn8k5EXWQEx8hvKNWo2wtBqdv8 rdzZU/CXPT1TnjROA+MMf65bRX6DPAXtrv7k9wA/tdN0szYX3KCCTtYLw83MoE83 3KZ5Yldj302bDaKyo07Yqn29hOfPYWguRVo6WRl5juRSiyk9OQw1H0uVhOIs11xV /XWqiNk2XJixQwOkMqYpxSd2KHs1jJIneViSHugqYq3ZjNaKY7dFJMIquXnAZ/oP qXHdMQjwSSSzkj/cIm/5PbsfXhgdbNHSaBZmC76NJf/Eh8o+slHt7zCxw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgedvgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A361EB6008F; Wed, 4 Oct 2023 04:25:23 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d MIME-Version: 1.0 Message-Id: <4ed81222-9409-4c9b-bd29-dbaf4275984f@app.fastmail.com> In-Reply-To: <20231003154326.213e9c81@kernel.org> References: <20230925155858.651425-1-arnd@kernel.org> <1430f3d3-4e84-b0ec-acd9-8a51db178f73@intel.com> <20231003154326.213e9c81@kernel.org> Date: Wed, 04 Oct 2023 10:25:03 +0200 From: "Arnd Bergmann" To: "Jakub Kicinski" , "Anthony L Nguyen" Cc: "Arnd Bergmann" , "Jesse Brandeburg" , "Lobakin, Alexandr" , "David S . Miller" , "Eric Dumazet" , "Paolo Abeni" , "Alan Brady" , "Sridhar Samudrala" , "Willem de Bruijn" , "Phani Burra" , "Joshua A Hay" , "Pavan Kumar Linga" , "Madhu Chittim" , "intel-wired-lan@lists.osuosl.org" , Netdev , linux-kernel@vger.kernel.org, "Alexander Lobakin" Subject: Re: [PATCH] idpf: fix building without IPv4 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:25:41 -0700 (PDT) On Wed, Oct 4, 2023, at 00:43, Jakub Kicinski wrote: > On Mon, 25 Sep 2023 10:05:03 -0700 Tony Nguyen wrote: >> Also, a pending patch for this [1], however, this does look a bit more >> efficient. Adding Olek as he's author on the other patch. >> >> netdev maintainers, >> >> If this is the version that does get picked up, did you want to take it >> directly to close out the compile issues? > > Sorry for the delays. Should we not add a !INET static inline wrapper > for tcp_gro_complete()? Seems a bit backwards to me to make drivers > suffer and think about such a preposterous config :S > > $ git grep tcp_gro_complete -- drivers/ > drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c: tcp_gro_complete(skb); > drivers/net/ethernet/broadcom/bnxt/bnxt.c: tcp_gro_complete(skb); > drivers/net/ethernet/intel/idpf/idpf_txrx.c: tcp_gro_complete(skb); > drivers/net/ethernet/qlogic/qede/qede_fp.c: tcp_gro_complete(skb); > > We have 4 drivers which need ifdefs already and the number will only > grow with GRO-HW spreading. That sounds good to me, but it's better if someone that understands this code patch better than me writes the stub helpers, to ensure all callers have sensible behavior in that configuration. I also had a brief look at who might be using kernels without CONFIG_INET. In the kernel source tree, there are 19 defconfig files that completely enable CONFIG_NET, which means that both INET and ETHERNET are always turned off as well. There are four configs that enable CONFIG_NET but not CONFIG_INET: arch/arm/configs/spear3xx_defconfig arch/arm/configs/spear6xx_defconfig arch/m68k/configs/virt_defconfig arch/s390/configs/zfcpdump_defconfig I'm confident that the two arm configs are a mistake, as these are regular embedded SoCs with on-chip ethernet that is enabled in the config but almost certainly has no other use. The virt defconfig lost CONFIG_INET after commit d7385ba13771 ("9p: Remove INET dependency") added an 'imply INET'. This sounds like a bad idea, since it messes up the 'defconfig' logic when a leaf driver enables an entire subsystem. The s390 zfcpdump defconfig looks like a legitimate case for disabling INET, but it's not that size constrained and it might not actually need CONFIG_NET either. So overall, it seems there is no real need to support CONFIG_NET=y with CONFIG_INET=n and we could just make them be the same and avoid bugs like this. In theory we could also go the opposite way and try to make INET a tristate symbol that can live in a loadable module like all other network protocols. This would be nice conceptually and for smaller vmlinux files (some systems are much more limited in the size of their boot partition than their RAM and rootfs), but would clearly cause way more build failures. Arnd