]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: introduce alternative implementation as net/lwip/
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 16 Oct 2024 10:03:59 +0000 (12:03 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 16 Oct 2024 17:11:56 +0000 (11:11 -0600)
commit8cb330355bd52852f209cf08c1e79babfbdf1253
tree12fcc4fa1aeb293919b15c6fa8205ae3c577e00d
parent625d40ab120dbc6f45dbd975857f8f87e422bd0f
net: introduce alternative implementation as net/lwip/

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.

SANDBOX can select NET_LWIP but doing so will currently disable the eth
dm tests as well as the wget tests which have strong dependencies on the
NET code.

Other adjustments to Kconfig files are made to fix "unmet direct
dependencies detected" for USB_FUNCTION_SDP and CMD_FASTBOOT when
the default networking stack is set to NET_LWIP ("default NET_LWIP"
instead of "default NET" in Kconfig).

The networking stack is now a choice between NO_NET,
NET and NET_LWIP. Therefore '# CONFIG_NET is not set' should be
'CONFIG_NO_NET=y'. Adjust the defconfigs accordingly.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
126 files changed:
Kconfig
Makefile
boot/Kconfig
cmd/Kconfig
common/Kconfig
common/spl/Kconfig
configs/LicheePi_Zero_defconfig
configs/M5249EVB_defconfig
configs/am335x_pdu001_defconfig
configs/am62ax_evm_r5_defconfig
configs/am62px_evm_r5_defconfig
configs/am62x_beagleplay_r5_defconfig
configs/amcore_defconfig
configs/amd_versal2_mini_defconfig
configs/amd_versal2_mini_emmc_defconfig
configs/amd_versal2_mini_ospi_defconfig
configs/amd_versal2_mini_qspi_defconfig
configs/anbernic-rgxx3-rk3566_defconfig
configs/ap143_defconfig
configs/ap152_defconfig
configs/apple_m1_defconfig
configs/astro_mcf5373l_defconfig
configs/at91sam9rlek_dataflash_defconfig
configs/at91sam9rlek_mmc_defconfig
configs/at91sam9rlek_nandflash_defconfig
configs/bcm7260_defconfig
configs/bcm7445_defconfig
configs/bcm968380gerg_ram_defconfig
configs/bcmns_defconfig
configs/chromebook_samus_tpl_defconfig
configs/cortina_presidio-asic-base_defconfig
configs/cortina_presidio-asic-pnand_defconfig
configs/durian_defconfig
configs/e850-96_defconfig
configs/ea-lpc3250devkitv2_defconfig
configs/efi-x86_app32_defconfig
configs/efi-x86_app64_defconfig
configs/emsdp_defconfig
configs/evb-px5_defconfig
configs/generic-rk3568_defconfig
configs/generic-rk3588_defconfig
configs/hc2910_2aghd05_defconfig
configs/igep00x0_defconfig
configs/imx6q_bosch_acc_defconfig
configs/imx6ulz_smm_m2_defconfig
configs/iot_devkit_defconfig
configs/j722s_evm_r5_defconfig
configs/legoev3_defconfig
configs/mk808_defconfig
configs/mx23evk_defconfig
configs/mx28evk_defconfig
configs/mx6memcal_defconfig
configs/mx6ulz_14x14_evk_defconfig
configs/mx7ulp_com_defconfig
configs/mx7ulp_evk_defconfig
configs/mx7ulp_evk_plugin_defconfig
configs/netgear_cg3100d_ram_defconfig
configs/nsim_700_defconfig
configs/nsim_700be_defconfig
configs/nsim_hs38be_defconfig
configs/openpiton_riscv64_defconfig
configs/openpiton_riscv64_spl_defconfig
configs/origen_defconfig
configs/pe2201_defconfig
configs/pinecube_defconfig
configs/pm9261_defconfig
configs/s5p4418_nanopi2_defconfig
configs/s5p_goni_defconfig
configs/s5pc210_universal_defconfig
configs/sama5d27_giantboard_defconfig
configs/sama5d29_curiosity_mmc1_defconfig
configs/sama5d29_curiosity_mmc_defconfig
configs/sama5d29_curiosity_qspiflash_defconfig
configs/sama7g54_curiosity_mmc_defconfig
configs/sama7g54_curiosity_nandflash_defconfig
configs/sama7g54_curiosity_qspiflash_defconfig
configs/sipeed_maix_bitm_defconfig
configs/sipeed_maix_smode_defconfig
configs/stemmy_defconfig
configs/stm32f429-discovery_defconfig
configs/stm32f429-evaluation_defconfig
configs/stm32f469-discovery_defconfig
configs/stm32h743-disco_defconfig
configs/stm32h743-eval_defconfig
configs/stm32h750-art-pi_defconfig
configs/stm32mp25_defconfig
configs/stmark2_defconfig
configs/th1520_lpi4a_defconfig
configs/thunderx_88xx_defconfig
configs/tools-only_defconfig
configs/topic_miami_defconfig
configs/topic_miamilite_defconfig
configs/topic_miamiplus_defconfig
configs/total_compute_defconfig
configs/trats2_defconfig
configs/trats_defconfig
configs/xenguest_arm64_defconfig
configs/xenguest_arm64_virtio_defconfig
configs/xilinx_versal_mini_defconfig
configs/xilinx_versal_mini_emmc0_defconfig
configs/xilinx_versal_mini_emmc1_defconfig
configs/xilinx_versal_mini_ospi_defconfig
configs/xilinx_versal_mini_qspi_defconfig
configs/xilinx_versal_net_mini_defconfig
configs/xilinx_versal_net_mini_emmc_defconfig
configs/xilinx_versal_net_mini_ospi_defconfig
configs/xilinx_versal_net_mini_qspi_defconfig
configs/xilinx_zynqmp_mini_defconfig
configs/xilinx_zynqmp_mini_emmc0_defconfig
configs/xilinx_zynqmp_mini_emmc1_defconfig
configs/xilinx_zynqmp_mini_nand_defconfig
configs/xilinx_zynqmp_mini_nand_single_defconfig
configs/xilinx_zynqmp_mini_qspi_defconfig
configs/zynq_cse_nand_defconfig
configs/zynq_cse_nor_defconfig
configs/zynq_cse_qspi_defconfig
drivers/dfu/Kconfig
drivers/fastboot/Kconfig
drivers/net/Kconfig
drivers/net/phy/Kconfig
drivers/usb/gadget/Kconfig
net/Kconfig
net/Makefile
net/lwip/Kconfig [new file with mode: 0644]
test/cmd/Makefile
test/dm/Makefile