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>,
	Raymond Mao <raymond.mao@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>,
	Nathan Barrett-Morrison <nathan.morrison@timesys.com>,
	Jesse Taube <mr.bossman075@gmail.com>,
	Bo Gan <ganboing@gmail.com>, Jonas Karlman <jonas@kwiboo.se>,
	Greg Malysa <greg.malysa@timesys.com>,
	John Keeping <jkeeping@inmusicbrands.com>,
	Shengyu Qu <wiagn233@outlook.com>, Stefan Roese <sr@denx.de>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Bin Meng <bmeng@tinylab.org>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
	Sean Anderson <sean.anderson@seco.com>,
	Andre Przywara <andre.przywara@arm.com>,
	Samuel Holland <samuel@sholland.org>,
	Oleksandr Suvorov <oleksandr.suvorov@foundries.io>,
	Lukas Funke <lukas.funke@weidmueller.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Alexey Romanov <avromanov@salutedevices.com>,
	Ion Agorria <ion@agorria.com>,
	Yang Xiwen <forbidden405@outlook.com>,
	Boon Khai Ng <boon.khai.ng@intel.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Nicolas Frattaroli <frattaroli.nicolas@gmail.com>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Baruch Siach <baruch@tkos.co.il>
Subject: Re: [PATCH v5 02/20] net: introduce alternative implementation as net-lwip/
Date: Thu, 25 Jul 2024 10:17:54 -0600	[thread overview]
Message-ID: <20240725161754.GW989285@bill-the-cat> (raw)
In-Reply-To: <a88252b5c961ee28a98653751bae627ab3349668.1721910373.git.jerome.forissier@linaro.org>

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

On Thu, Jul 25, 2024 at 02:57:23PM +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.
> 
> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
[snip]

Here in net/Kconfig you do..
> +if NET || NET_LWIP
> +
> +config BOOTDEV_ETH
> +	bool "Enable bootdev for ethernet"
> +	depends on BOOTSTD
> +	default y
> +	help
> +	  Provide a bootdev for ethernet so that is it possible to boot
> +	  an operating system over the network, using the PXE (Preboot
> +	  Execution Environment) protocol.
> +
>  config SYS_RX_ETH_BUFFER
>  	int "Number of receive packet buffers"
>  	default 4

But we must have SYS_RX_ETH_BUFFER defined even in the NO_NET case as
otherwise previously <net.h> and now <net-common.h> cannot be used, and
untying that is another big mess. We include <net.h> in common areas for
function prototypes where their usage is guarded. But we use PKTBUFSRX
in some structs that aren't guarded. Trying to build for example for
am62x_beagleplay_r5 with this series blows up in a lot of places.

-- 
Tom

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

  parent reply	other threads:[~2024-07-25 17:15 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 12:57 [PATCH v5 00/20] Introduce the lwIP network stack Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 01/20] flash: prefix error codes with FL_ Jerome Forissier
2024-07-25 18:18   ` Tom Rini
2024-07-26  8:51     ` Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 02/20] net: introduce alternative implementation as net-lwip/ Jerome Forissier
2024-07-25 13:46   ` Maxim Uvarov
2024-07-25 16:17   ` Tom Rini [this message]
2024-07-26 12:08     ` Jerome Forissier
2024-07-26  8:44   ` Michal Simek
2024-07-26 12:39     ` Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 03/20] configs: replace '# CONFIG_NET is not set' with CONFIG_NO_NET=y Jerome Forissier
2024-08-07 13:58   ` Felix Brack
2024-07-25 12:57 ` [PATCH v5 04/20] net: fec_mxc_init(): do not ignore return status of fec_open() Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 05/20] net: split include/net.h into net{, -common, -legacy, -lwip}.h Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 06/20] net: eth-uclass: add function eth_start_udev() Jerome Forissier
2024-07-25 18:27   ` Tom Rini
2024-07-26  8:38     ` Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 07/20] net-lwip: build lwIP Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 08/20] net-lwip: add DHCP support and dhcp commmand Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 09/20] net-lwip: add TFTP support and tftpboot command Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 10/20] net-lwip: add ping command Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 11/20] net-lwip: add dns command Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 12/20] net: split cmd/net.c into cmd/net.c and cmd/net-common.c Jerome Forissier
2024-07-29 12:41   ` Ilias Apalodimas
2024-07-25 12:57 ` [PATCH v5 13/20] net-lwip: add wget command Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 14/20] net-lwip: lwIP wget supports user defined port in the uri, so allow it Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 15/20] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 16/20] configs: add qemu_arm64_lwip_defconfig Jerome Forissier
2024-07-25 15:58   ` Tom Rini
2024-07-25 16:10     ` Jerome Forissier
2024-07-25 16:25       ` Tom Rini
2024-07-26 12:27         ` Jerome Forissier
2024-07-26 14:05           ` Tom Rini
2024-07-25 12:57 ` [PATCH v5 17/20] lwip: tftp: add support of blksize option to client Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 18/20] net-lwip: add TFTP_BLOCKSIZE Jerome Forissier
2024-07-29 12:29   ` Ilias Apalodimas
2024-07-29 15:18     ` Jerome Forissier
2024-07-30  9:57       ` Ilias Apalodimas
2024-07-25 12:57 ` [PATCH v5 19/20] CI: add qemu_arm64_lwip to the test matrix Jerome Forissier
2024-07-25 12:57 ` [PATCH v5 20/20] MAINTAINERS: net-lwip: add myself as a maintainer Jerome Forissier
2024-07-25 13:03 ` [PATCH v5 00/20] Introduce the lwIP network stack Fabio Estevam
2024-07-25 17:22 ` Tom Rini
2024-07-25 22:34   ` Tom Rini
2024-08-01 14:40     ` Jerome Forissier
2024-08-01 14:43       ` Tom Rini
2024-08-01 15:15         ` Jerome Forissier
2024-08-01 15:21           ` Tom Rini
2024-08-02 20:16       ` Tom Rini
2024-08-07 15:06         ` Jerome Forissier
2024-07-30  9:48   ` Jerome Forissier
2024-07-30 14:02     ` Tom Rini
2024-07-30 14:23       ` Jerome Forissier
2024-08-07 18:54 ` Michael Nazzareno Trimarchi
2024-08-07 19:08   ` 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=20240725161754.GW989285@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=andre.przywara@arm.com \
    --cc=avromanov@salutedevices.com \
    --cc=baruch@tkos.co.il \
    --cc=bmeng@tinylab.org \
    --cc=boon.khai.ng@intel.com \
    --cc=forbidden405@outlook.com \
    --cc=frattaroli.nicolas@gmail.com \
    --cc=ganboing@gmail.com \
    --cc=greg.malysa@timesys.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=ion@agorria.com \
    --cc=jagan@amarulasolutions.com \
    --cc=javier.tia@linaro.org \
    --cc=jerome.forissier@linaro.org \
    --cc=jh80.chung@samsung.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=jkeeping@inmusicbrands.com \
    --cc=joe.hershberger@ni.com \
    --cc=jonas@kwiboo.se \
    --cc=lukas.funke@weidmueller.com \
    --cc=lukma@denx.de \
    --cc=marex@denx.de \
    --cc=miquel.raynal@bootlin.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=mr.bossman075@gmail.com \
    --cc=muvarov@gmail.com \
    --cc=nathan.morrison@timesys.com \
    --cc=neil.armstrong@linaro.org \
    --cc=oleksandr.suvorov@foundries.io \
    --cc=quentin.schulz@cherry.de \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=raymond.mao@linaro.org \
    --cc=rfried.dev@gmail.com \
    --cc=samuel@sholland.org \
    --cc=sean.anderson@seco.com \
    --cc=sjg@chromium.org \
    --cc=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=wiagn233@outlook.com \
    --cc=xypron.glpk@gmx.de \
    /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.