From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Tom Rini <trini@konsulko.com>
Cc: Jerome Forissier <jerome.forissier@linaro.org>,
u-boot@lists.denx.de, 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>,
Greg Malysa <greg.malysa@timesys.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Jonas Karlman <jonas@kwiboo.se>,
Svyatoslav Ryhel <clamor95@gmail.com>,
Shengyu Qu <wiagn233@outlook.com>,
John Keeping <jkeeping@inmusicbrands.com>,
Jesse Taube <mr.bossman075@gmail.com>,
Sumit Garg <sumit.garg@linaro.org>, Bryan Brattlof <bb@ti.com>,
"Leon M. Busch-George" <leon@georgemail.eu>,
Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Samuel Dionne-Riel <samuel@dionne-riel.com>,
Joshua Watt <jpewhacker@gmail.com>,
Sean Anderson <sean.anderson@seco.com>,
Andre Przywara <andre.przywara@arm.com>,
Mayuresh Chitale <mchitale@ventanamicro.com>,
Oleksandr Suvorov <oleksandr.suvorov@foundries.io>,
Samuel Holland <samuel@sholland.org>,
Jaehoon Chung <jh80.chung@samsung.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Ashok Reddy Soma <ashok.reddy.soma@amd.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Alexey Romanov <avromanov@salutedevices.com>,
Quentin Schulz <quentin.schulz@theobroma-systems.com>,
Ion Agorria <ion@agorria.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 v2 01/14] net: introduce alternative implementation as net-lwip/
Date: Tue, 28 May 2024 14:53:34 +0300 [thread overview]
Message-ID: <ZlXFvvs7RHPwAoui@hera> (raw)
In-Reply-To: <20240527153434.GH2568172@bill-the-cat>
On Mon, May 27, 2024 at 09:34:34AM -0600, Tom Rini wrote:
> On Fri, May 24, 2024 at 06:19:55PM +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. At this
> > point, enabling NET_LWIP simply disables NET. 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 is not compatible with NET_LWIP because it depends
> > on net_loop(), tftp_timeout_ms, tftp_timeout_count_max. Let's add a
> > dependency on !NET_LWIP for now.
> >
> > Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
> [snip]
> > diff --git a/Kconfig b/Kconfig
> > index 82df59f176e..758256ab121 100644
> > --- a/Kconfig
> > +++ b/Kconfig
> > @@ -747,6 +747,8 @@ source "env/Kconfig"
> >
> > source "net/Kconfig"
> >
> > +source "net-lwip/Kconfig"
> > +
> > source "drivers/Kconfig"
> >
> > source "fs/Kconfig"
>
> I think we need to instead rework this to a choice statement instead so
> that in the end we have something like:
+ 1
> choice "Networking stack"
> config NO_NET
> bool "No networking support"
> config NET
> bool "Legacy U-Boot networking stack"
> config NET_LWIP
> bool "Use lwIP for networking stack"
>
> if NET_LEGACY
> source "net/Kconfig"
> endif
>
> if NET_LWIP
> source "net-lwip/Kconfig"
> endif
>
> And then SPL_NET still depends on !NET_LWIP for now and we sort out the
> problems with different networking stacks in SPL vs full U-Boot later
> on.
That's an excellent idea tbh. We can now decouple SPL and u-boot proper
using different stacks and fix the more difficult to debug SPL issues in
time. Once we feel happy we can switch over to LWIP completely
Thanks
/Ilias
>
> --
> Tom
next prev parent reply other threads:[~2024-05-28 16:48 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-24 16:19 [PATCH v2 00/14] Introduce the lwIP network stack Jerome Forissier
2024-05-24 16:19 ` [PATCH v2 01/14] net: introduce alternative implementation as net-lwip/ Jerome Forissier
2024-05-27 15:34 ` Tom Rini
2024-05-28 11:53 ` Ilias Apalodimas [this message]
2024-06-05 17:48 ` Jerome Forissier
2024-05-24 16:19 ` [PATCH v2 02/14] Squashed 'lib/lwip/lwip/' content from commit 0a0452b2c39 Jerome Forissier
2024-05-24 16:19 ` [PATCH v2 03/14] net-lwip: build lwIP Jerome Forissier
2024-05-24 16:19 ` [PATCH v2 04/14] net-lwip: add DHCP support and dhcp commmand Jerome Forissier
2024-05-24 16:19 ` [PATCH v2 05/14] net-lwip: add TFTP support and tftpboot command Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 06/14] net-lwip: add ping command Jerome Forissier
2024-06-06 9:10 ` Ilias Apalodimas
2024-06-06 12:04 ` Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 07/14] net-lwip: add dns command Jerome Forissier
2024-06-06 6:29 ` Ilias Apalodimas
2024-06-06 8:51 ` Maxim Uvarov
2024-06-06 12:19 ` Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 08/14] net-lwip: add wget command Jerome Forissier
2024-05-28 13:39 ` Maxim Uvarov
2024-06-06 9:56 ` Jerome Forissier
2024-06-06 10:16 ` Maxim Uvarov
2024-06-06 12:14 ` Jerome Forissier
2024-06-06 9:38 ` Ilias Apalodimas
2024-05-24 16:20 ` [PATCH v2 09/14] test: dm: dsa, eth: disable tests when CONFIG_NET_LWIP=y Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 10/14] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 11/14] configs: add qemu_arm64_lwip_defconfig Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 12/14] test/py: net: add _lwip variants of dhcp, ping and tftpboot tests Jerome Forissier
2024-05-28 9:41 ` Love Kumar
2024-05-28 9:53 ` Maxim Uvarov
2024-05-30 14:11 ` Jerome Forissier
2024-05-30 14:22 ` Maxim Uvarov
2024-06-06 9:18 ` Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 13/14] MAINTAINERS: net-lwip: add myself as a maintainer Jerome Forissier
2024-05-24 16:20 ` [PATCH v2 14/14] CI: add qemu_arm64_lwip to the test matrix Jerome Forissier
2024-05-27 9:23 ` [PATCH v2 00/14] Introduce the lwIP network stack Francesco Dolcini
2024-05-27 9:36 ` Jerome Forissier
2024-05-27 9:45 ` Martin Husemann
2024-05-27 12:45 ` Jerome Forissier
2024-05-27 12:47 ` Martin Husemann
2024-05-28 11:50 ` Ilias Apalodimas
2024-06-04 23:13 ` Peter Robinson
2024-05-27 15:34 ` Tom Rini
2024-06-06 9:15 ` Jerome Forissier
2024-06-06 14:25 ` Tom Rini
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=ZlXFvvs7RHPwAoui@hera \
--to=ilias.apalodimas@linaro.org \
--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=clamor95@gmail.com \
--cc=frattaroli.nicolas@gmail.com \
--cc=greg.malysa@timesys.com \
--cc=ion@agorria.com \
--cc=javier.tia@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=jh80.chung@samsung.com \
--cc=jkeeping@inmusicbrands.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=oleksandr.suvorov@foundries.io \
--cc=patrice.chotard@foss.st.com \
--cc=patrick.delaunay@foss.st.com \
--cc=quentin.schulz@theobroma-systems.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=rfried.dev@gmail.com \
--cc=samuel@dionne-riel.com \
--cc=samuel@sholland.org \
--cc=sean.anderson@seco.com \
--cc=sjg@chromium.org \
--cc=sumit.garg@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=wiagn233@outlook.com \
--cc=xypron.glpk@gmx.de \
--cc=yanhong.wang@starfivetech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox