[{"id":3684177,"web_url":"http://patchwork.ozlabs.org/comment/3684177/","msgid":"<CAFLszTgYEUuvDtVK0z2UOqx_q8xNiganUjjCowNmVS9uXJXTfw@mail.gmail.com>","list_archive_url":null,"date":"2026-04-29T17:15:39","subject":"Re: [PATCH RFC next 4/5] net: guard SYS_RX_ETH_BUFFER with NET","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"On 2026-04-29T10:35:00, Quentin Schulz <foss+uboot@0leil.net> wrote:\n> net: guard SYS_RX_ETH_BUFFER with NET\n>\n> SYS_RX_ETH_BUFFER represents the number of Ethernet receive packet\n> buffers. It therefore doesn't make sense it's reachable if NET isn't\n> enabled.\n>\n> Direct users of SYS_RX_ETH_BUFFER are:\n> - drivers/net/rtl8169.c, only compiled if CONFIG_RTL8169=y, depends on\n>   CONFIG_NETDEVICES=y, depends on CONFIG_NET=y,\n> - drivers/net/fsl_enetc.h, via ENETC_BD_CNT, included in\n>     drivers/net/{fsl_enetc.c,fsl_enetc_mdio.c,mscc_eswitch/felix_switch.c}\n>   First two only compiled if CONFIG_FSL_ENETC=y, latter with\n>   CONFIG_MSCC_FELIX_SWITCH=y. Both symbols depends on\n>   CONFIG_NETDEVICES=y, depends on CONFIG_NET=y.\n> - include/net-common.h via PKTBUFSRX,\n>\n> Indirect users via PKTBUFSRX:\n> - arch/sandbox/include/asm/eth.h\n>   - according to ./tools/qconfig.py -l -f CONFIG_SANDBOX CONFIG_NO_NET,\n>     all sandbox defconfigs have network enabled so ignore this for now,\n> [...]\n>\n> include/net-common.h | 4 ++++\n>  net/Kconfig          | 4 ++++\n>  2 files changed, 8 insertions(+)\n\nReviewed-by: Simon Glass <sjg@chromium.org>","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=WpOo3iD4;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org\n header.b=\"WpOo3iD4\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org","phobos.denx.de;\n spf=pass smtp.mailfrom=sjg@chromium.org"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5P8Y4zynz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 03:15:57 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 99161848E3;\n\tWed, 29 Apr 2026 19:15:55 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 056D7848DA; Wed, 29 Apr 2026 19:15:54 +0200 (CEST)","from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com\n [IPv6:2a00:1450:4864:20::62a])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 22B6F848E3\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 19:15:52 +0200 (CEST)","by mail-ej1-x62a.google.com with SMTP id\n a640c23a62f3a-b93698bb57aso12802366b.0\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 10:15:52 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","ARC-Seal":"i=1; a=rsa-sha256; t=1777482951; cv=none;\n d=google.com; s=arc-20240605;\n b=EGg2uDdHIltCO1shUJ8qNz0jUoV61l48P037VimNN+JC8rLcTeZDqBoDFJbU90hSN0\n LZhOA/nwPib9jPDVIgLT3FFaqW6qieYfRCX+cKBmAXZe9M41EniNgAE9So/6wiBBl0aa\n D1XdnhS1c3ccdMcV9GlWhqZtQnMTTHJJJbyQN4wUEv/H6FcBSFMQY400I3nIGMenMZMX\n Yzc7c6XWzmbGxMmVrpbO+oj4jeP1TZ9Ouhpyre4jCLBlc/kMW66+95Ng66rAlS7HTUTd\n jvYsNRkQhZNlO0odvQPlFt8nR7z4KQfSz1twuO+Gmy0eCKz5uQ4bK/hyBWmvBLfRMIFn\n D05A==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=LKZt+EUDNDlqVqpI5cAP28h2ZHC5stxPvVoU6xcUKk0=;\n fh=+/pNFDyGYsDJMoXpsFeigOK5l3QyGzKdfAevrQne9bY=;\n b=hctVe6Mjt/1eVhcxnUwNufgL/Ik08tbf130MnrIBp2BZk+SzWm7BynmEEmuLmW9UQE\n PVN5s+DL6nZ4OcZUPLx+/Sd/x4I7n0HNY0q0kgQNqKBke17PTPSqlJXI06n2+tmn7zr8\n PvZRKmP6QA/WB0TSPPsaUVAOKwMSia7OLwlxRIdioxyg5Zp7tPQUOD9dqvEQlQXWc7RB\n 4FAncgKZWZRPyswwpyEdrzxc9khT2V6SUFGi7tgssPl2H5zZpmIz0Rx+2gLNSLcZic8W\n bzJTiTQJDJG1zk4k6XFH4pds9naHN5CwF832Yu47HVjCvPBdO1ihzMyoDkT5cFyMvygh\n GkVA==; darn=lists.denx.de","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1777482951; x=1778087751; darn=lists.denx.de;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=LKZt+EUDNDlqVqpI5cAP28h2ZHC5stxPvVoU6xcUKk0=;\n b=WpOo3iD4NIcciOSjt2ySBmyTOT3wljCOxyHvCQ0oKl0ETfN4NMilniSiwmw+9PUZxF\n 0DMwcGCR7vqU/H51vDp8wwPNjPy6Bk+3RbjgkBALXJSYY1x65T6bcq2VInn4GLTaoLoW\n ThQYHR7vms8ReiNn5mXO9ke0IdAqGztqka3k0=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777482951; x=1778087751;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=LKZt+EUDNDlqVqpI5cAP28h2ZHC5stxPvVoU6xcUKk0=;\n b=oi9iFp9SM6Q4KKVDzSDdCLkaqPRzktwKYxs+AJfD2cWt3+hUuubOf7b9L+hp+fkJeu\n tPMKMot1LY/Li9weasB0LWdxDJNbJ/KHoJDs7adNvCNOHG6zUnxTwLLGxcbHEFvQCKqJ\n UIgQLAHdCDo8pblSaxkVTIDMkVQ5RkFmnSc9XyTVdPNle7bJcvQgYG33ww15jl5wXqR4\n 9mc8Czd/BXlxMu0OnbVRs4/pqu1mIdgGjw7nmve162U3/XSCY9hZlQOvPgbDBiBXR4c9\n 8LQO/rOd2D3MNNqpVOz70+z0ym6JIastU5K/knsLf99qVoM2j7MLGwmj2xrgfcBzl19B\n ldNg==","X-Gm-Message-State":"AOJu0YxdIjcVy2FKekoO7LBQSLBJv/Nafu/VhFqO2TrOdnM0/myl1hNk\n o/zpXBIWGymClOr4h7rOxkXu2Glxh+azq9/cSGeY+xdykWa9Z1v9QeQNX7XuRNqcr4+FiNpa7FI\n 74YhZNcszS4p8VB07utwD1hPGL9tuVXm8xveSWtNXbqyxHRf9cBvrkw==","X-Gm-Gg":"AeBDievqVteeE7M9JBFaCTG/fEbiy8314hG2iDvXB2R/jB+hU9izT+qUPdw0jdJzcfV\n Wrtit2dNdNGmokv7b3sTnODHeWAWvC2cMbBq90X07nQThLZFhgmJYyJFoGIxxOu06KptXnFp2eR\n 7wIQ0H8RuMd16s6DC2IwRbcEUP65grRY0jjFa04iK+NXO0leobkiRIzruaFtZdIii/EJYbu2QeK\n 5mwfNjlXr4LsonTeHnrOAcvtLGZ4KQAbF5SMDJuzQh3pdykJu2/O7hzeFcEyU2Vt+5pmOoNSdzK\n TfYlr4d+SoHzzIetPXqge4RHc9TekMfNw5CBY0zKfavhW2c/tVVf","X-Received":"by 2002:a17:907:3e9c:b0:b9c:ba09:db7d with SMTP id\n a640c23a62f3a-bb9596ccc76mr224071566b.20.1777482951577; Wed, 29 Apr 2026\n 10:15:51 -0700 (PDT)","MIME-Version":"1.0","References":"<20260429-sys_rx_eth_buffer-no-net-v1-0-396ef37ae93c@cherry.de>\n <20260429-sys_rx_eth_buffer-no-net-v1-4-396ef37ae93c@cherry.de>","In-Reply-To":"<20260429-sys_rx_eth_buffer-no-net-v1-4-396ef37ae93c@cherry.de>","From":"Simon Glass <sjg@chromium.org>","Date":"Thu, 30 Apr 2026 05:15:39 +1200","X-Gm-Features":"AVHnY4L9QOhVGc1X9_AfGtvZITB0QS5-O73ORYthZp15WQXhJFx211r1Hrcyo6Y","Message-ID":"\n <CAFLszTgYEUuvDtVK0z2UOqx_q8xNiganUjjCowNmVS9uXJXTfw@mail.gmail.com>","Subject":"Re: [PATCH RFC next 4/5] net: guard SYS_RX_ETH_BUFFER with NET","To":"foss+uboot@0leil.net","Cc":"u-boot@lists.denx.de, Tang Yuantian <andy.tang@nxp.com>,\n Tom Rini <trini@konsulko.com>,  Fabio Estevam <festevam@gmail.com>,\n Alice Guo <alice.guo@nxp.com>,  Jerome Forissier <jerome.forissier@arm.com>,\n Peter Robinson <pbrobinson@gmail.com>,  Simon Glass <sjg@chromium.org>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n  Benjamin Hahn <B.Hahn@phytec.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>, =?utf-8?q?Alvin_=C5=A0iprag?=\n\t=?utf-8?q?a?= <alvin@pqrs.dk>,  Quentin Schulz <quentin.schulz@cherry.de>","Content-Type":"text/plain; charset=\"UTF-8\"","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}}]