All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Jerome Forissier <jerome.forissier@linaro.org>
Cc: u-boot@lists.denx.de,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Javier Tia <javier.tia@linaro.org>,
	Maxim Uvarov <muvarov@gmail.com>, Lukasz Majewski <lukma@denx.de>,
	Mattijs Korpershoek <mkorpershoek@baylibre.com>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Ramon Fried <rfried.dev@gmail.com>, Marek Vasut <marex@denx.de>,
	Simon Glass <sjg@chromium.org>, Jonas Karlman <jonas@kwiboo.se>,
	Paul Barker <paul.barker.ct@bp.renesas.com>,
	Sean Anderson <sean.anderson@seco.com>,
	Jesse Taube <mr.bossman075@gmail.com>,
	Greg Malysa <greg.malysa@timesys.com>,
	Shengyu Qu <wiagn233@outlook.com>, Andrew Davis <afd@ti.com>,
	Sumit Garg <sumit.garg@linaro.org>, Bryan Brattlof <bb@ti.com>,
	"Leon M. Busch-George" <leon@georgemail.eu>,
	Ying Sun <sunying@nj.iscas.ac.cn>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Joshua Watt <jpewhacker@gmail.com>,
	Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
	Bin Meng <bmeng.cn@gmail.com>,
	Andre Przywara <andre.przywara@arm.com>,
	Leo Yu-Chi Liang <ycliang@andestech.com>,
	Mayuresh Chitale <mchitale@ventanamicro.com>,
	Oleksandr Suvorov <oleksandr.suvorov@foundries.io>,
	Samuel Holland <samuel@sholland.org>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Ashok Reddy Soma <ashok.reddy.soma@amd.com>,
	Ion Agorria <ion@agorria.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Alexey Romanov <avromanov@salutedevices.com>,
	Yang Xiwen <forbidden405@outlook.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Boon Khai Ng <boon.khai.ng@intel.com>,
	Yanhong Wang <yanhong.wang@starfivetech.com>,
	Nicolas Frattaroli <frattaroli.nicolas@gmail.com>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Baruch Siach <baruch@tkos.co.il>
Subject: Re: [PATCH v4 02/14] net: introduce alternative implementation as net-lwip/
Date: Tue, 18 Jun 2024 11:59:33 -0600	[thread overview]
Message-ID: <20240618175933.GV68077@bill-the-cat> (raw)
In-Reply-To: <f382942cd9d0d62da5204b884c6fa1a59526d262.1718638104.git.jerome.forissier@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 2452 bytes --]

On Mon, Jun 17, 2024 at 05:32:54PM +0200, Jerome Forissier wrote:

> Prepare the introduction of the lwIP (lightweight IP) TCP/IP stack by
> adding a new net-lwip/ directory and the NET_LWIP symbol. Network
> support is either NO_NET, NET (legacy stack) or NET_LWIP. Subsequent
> commits will introduce the lwIP code, re-work the NETDEVICE integration
> and port some of the NET commands and features to lwIP.
> 
> SPL_NET cannot be enabled when NET_LWIP=y. SPL_NET pulls some symbols
> that are part of NET (such as arp_init(), arp_timeout_check(),
> arp_receive(), net_arp_wait_packet_ip()). lwIP support in SPL may be
> added later.
> 
> Similarly, DFU_TFTP and FASTBOOT are not compatible with NET_LWIP
> because of dependencies on net_loop(), tftp_timeout_ms,
> tftp_timeout_count_max and other NET things. Let's add a dependency on
> !NET_LWIP for now.
> 
> As for SANDBOX, NET_LWIP cannot be used either because of strong
> assumptions on the network stack. Make NET_LWIP depend on !SANDBOX so
> that the NET_LWIP alternative is not visible in make menuconfig when
> sandbox_defconfig is used.
[snip]
> diff --git a/Kconfig b/Kconfig
> index 82df59f176e..cfe2a6d3eac 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -745,7 +745,48 @@ source "dts/Kconfig"
>  
>  source "env/Kconfig"
>  
> +choice
> +	prompt "Networking stack"
> +	default NET
> +
> +config NO_NET
> +	bool "No networking support"
> +
> +config NET
> +	bool "Legacy U-Boot networking stack"
> +	imply NETDEVICES
> +
> +config NET_LWIP
> +	bool "Use lwIP for networking stack"
> +	imply NETDEVICES
> +	depends on !SANDBOX
> +	help
> +	  Include networking support based on the lwIP (lightweight IP)
> +	  TCP/IP stack (https://nongnu.org/lwip). This is a replacement for
> +	  the default U-Boot network stack and applications located in net/
> +	  and enabled via CONFIG_NET as well as other pieces of code that
> +	  depend on CONFIG_NET (such as cmd/net.c enabled via CONFIG_CMD_NET).
> +	  Therefore the two symbols CONFIG_NET and CONFIG_NET_LWIP are mutually
> +	  exclusive.
> +
> +endchoice

For ease of reviewability the next patch in the series should change all
of the configs with '# CONFIG_NET is not set' to 'CONFIG_NO_NET=y' so
that they functionally don't change. It's 105 files and so while it will
be folded in when lwIP is ready for merge, keeping it separate for now
will make review easier.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-06-18 18:59 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17 15:32 [PATCH v4 00/14] Introduce the lwIP network stack Jerome Forissier
2024-06-17 15:32 ` [PATCH v4 01/14] flash: prefix error codes with FL_ Jerome Forissier
2024-06-18 16:22   ` Tom Rini
2024-06-19  7:29   ` Ilias Apalodimas
2024-06-17 15:32 ` [PATCH v4 02/14] net: introduce alternative implementation as net-lwip/ Jerome Forissier
2024-06-18 17:59   ` Tom Rini [this message]
2024-06-19  9:06     ` Jerome Forissier
2024-06-17 15:32 ` [PATCH v4 03/14] net: split include/net.h into net{, -common, -legacy, -lwip}.h Jerome Forissier
2024-06-17 15:32 ` [PATCH v4 04/14] net-lwip: build lwIP Jerome Forissier
2024-06-17 15:32 ` [PATCH v4 05/14] net-lwip: add DHCP support and dhcp commmand Jerome Forissier
2024-06-17 16:54   ` Heinrich Schuchardt
2024-06-19  9:37     ` Jerome Forissier
2024-06-19 10:07       ` Ilias Apalodimas
2024-06-17 15:32 ` [PATCH v4 06/14] net-lwip: add TFTP support and tftpboot command Jerome Forissier
2024-06-17 15:32 ` [PATCH v4 07/14] net-lwip: add ping command Jerome Forissier
2024-06-17 15:33 ` [PATCH v4 08/14] net-lwip: add dns command Jerome Forissier
2024-06-17 15:33 ` [PATCH v4 09/14] net: split cmd/net.c into cmd/net.c and cmd/net-common.c Jerome Forissier
2024-06-17 15:33 ` [PATCH v4 10/14] net-lwip: add wget command Jerome Forissier
2024-06-24  6:21   ` Jon Humphreys
2024-06-24  6:25     ` Jon Humphreys
2024-06-24  8:50       ` Jerome Forissier
2024-06-24  6:26     ` Jon Humphreys
2024-06-24  8:52       ` Jerome Forissier
2024-06-24  8:49     ` Jerome Forissier
2024-06-25  3:20       ` Jon Humphreys
2024-06-25  7:43         ` Jerome Forissier
2024-06-17 15:33 ` [PATCH v4 11/14] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Jerome Forissier
2024-06-17 15:33 ` [PATCH v4 12/14] configs: add qemu_arm64_lwip_defconfig Jerome Forissier
2024-06-19 12:14   ` Ilias Apalodimas
2024-06-17 15:33 ` [PATCH v4 13/14] MAINTAINERS: net-lwip: add myself as a maintainer Jerome Forissier
2024-06-17 15:33 ` [PATCH v4 14/14] CI: add qemu_arm64_lwip to the test matrix Jerome Forissier
2024-06-18 20:21 ` [PATCH v4 00/14] Introduce the lwIP network stack Tom Rini
2024-06-19  7:24   ` Ilias Apalodimas
2024-06-19 14:47     ` Jerome Forissier
2024-06-19 15:07       ` Tom Rini
2024-06-19 16:45         ` Jerome Forissier
2024-06-19 17:19       ` Peter Robinson
2024-06-20  8:05         ` Jerome Forissier
2024-06-20 17:10 ` Tim Harvey
2024-06-21 12:59   ` Jerome Forissier
2024-06-21 16:08     ` Tim Harvey
2024-06-21 17:56       ` Jerome Forissier
2024-06-21 18:42       ` Fabio Estevam
2024-06-22  8:08         ` Maxim Uvarov
2024-06-24 22:28           ` Tim Harvey
2024-06-25  8:02             ` Jerome Forissier
2024-06-26 16:00               ` Tim Harvey
2024-06-28  9:50                 ` Jerome Forissier
2024-06-28 15:48                   ` Tim Harvey
2024-07-01  9:58                     ` Jerome Forissier
2024-07-01 16:06                       ` Tim Harvey
2024-06-21 14:57 ` Simon Glass
2024-06-21 17:55   ` Jerome Forissier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240618175933.GV68077@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=afd@ti.com \
    --cc=andre.przywara@arm.com \
    --cc=ashok.reddy.soma@amd.com \
    --cc=avromanov@salutedevices.com \
    --cc=baruch@tkos.co.il \
    --cc=bb@ti.com \
    --cc=bmeng.cn@gmail.com \
    --cc=boon.khai.ng@intel.com \
    --cc=forbidden405@outlook.com \
    --cc=frattaroli.nicolas@gmail.com \
    --cc=greg.malysa@timesys.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=ion@agorria.com \
    --cc=javier.tia@linaro.org \
    --cc=jerome.forissier@linaro.org \
    --cc=jh80.chung@samsung.com \
    --cc=joe.hershberger@ni.com \
    --cc=jonas@kwiboo.se \
    --cc=jpewhacker@gmail.com \
    --cc=leon@georgemail.eu \
    --cc=lukma@denx.de \
    --cc=marex@denx.de \
    --cc=mchitale@ventanamicro.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=mr.bossman075@gmail.com \
    --cc=muvarov@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=oleksandr.suvorov@foundries.io \
    --cc=paul.barker.ct@bp.renesas.com \
    --cc=quentin.schulz@cherry.de \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=rfried.dev@gmail.com \
    --cc=samuel@sholland.org \
    --cc=sean.anderson@seco.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=sunying@nj.iscas.ac.cn \
    --cc=u-boot@lists.denx.de \
    --cc=wiagn233@outlook.com \
    --cc=xypron.glpk@gmx.de \
    --cc=yanhong.wang@starfivetech.com \
    --cc=ycliang@andestech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.