Skip to contentSkip to conversation

Please pull net-next-20261009 [corrected]

DISCUSSION Jerome Forissier 3 participants 7 messages Oct 12 – Oct 13

lore
Share & tools
lore
#0 lore raw

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

net-legacy:
- dhcp6 use link local address
- fix UDP checksum check for odd-length packets

net-lwip:
- restore BOOTP, DHCPv4 boot policy and PXE parity

net:
- e1000: use all RX descriptors
- net: fsl_ls_mdio: add match fsl,fman-memac-mdio
- phy: prioritize GMII2RGMII bridge over DM-bound PHY lookup
- dwc_eth_qos: bring PHY up before triggering DMA soft reset
- pxe_utils: Fix buffer overflow in pxe_label.num
- pxe_utils: Fix leak and double free when using fallback
- phy: dp83867: fix register number for extended read/write
- designware: Fix MDIO bus getting bound multiple times
- mdio-mux: Recover gracefully from bad parents
- dwc_eth_qos_rockchip: Fix use of mii/mdio commands
- eth-phy: Add reset control support
- dwc_eth_qos: spacemit: add support for K3 SoC

----------------------------------------------------------------
James Hilliard (20):
net: lwip: bound NFS filename parsing and release its copy
net: preserve the autoload value across dhcp_run
net: lwip: finish DHCP before starting autoload
test: net: cover lwIP DHCP autoload handoff
net: lwip: add a hook before accepting DHCP acknowledgements
net: lwip: carry DHCP boot options into the environment
test: net: exercise lwIP DHCP boot option handling
net: lwip: export DHCP DNS settings without a resolver
net: lwip: honor configured DHCP boot-server preferences
net: lwip: support PXE client and configuration options
net: cache accepted DHCP acknowledgements for EFI PXE consumers
net: lwip: honor DHCP timing controls and request header fields
net: lwip: add a hook before parsing DHCP replies
net: lwip: accept direct ProxyDHCP replies without a lease
net: lwip: retain boot metadata from the selected DHCP offer
net: lwip: retry DHCP acquisition using the network failure policy
test: net: exercise lwIP ProxyDHCP ordering and validation
net: lwip: separate DHCP exchange from boot configuration
net: lwip: support standalone BOOTP
test: net: exercise lwIP standalone BOOTP

Jerome Forissier (1):
qemu-xtensa: Increase the U-Boot memory reservation

Jonas Karlman (4):
net: dwc_eth_qos_rockchip: Relax dependency on reset controls
net: dwc_eth_qos_rockchip: Do not keep reset controls asserted
net: eth-phy: Refactor DM_GPIO guard
net: eth-phy: Add reset control support

Mingtian Li (1):
net: fix UDP checksum check for odd-length packets

Nora Schiffer (1):
net: phy: dp83867: fix register number for extended read/write

Pranav Tilak (1):
net: phy: prioritize GMII2RGMII bridge over DM-bound PHY lookup

Sean Anderson (4):
net: designware: Use if instead of #if for DM_MDIO
net: designware: Fix MDIO bus getting bound multiple times
net: mdio-mux: Don't crash if our parent never shows up
net: mdio-mux: Remove ourselves when our parent is removed

Suraj Kakade (2):
boot: pxe_utils: Fix buffer overflow in pxe_label.num
boot: pxe_utils: Fix leak and double free when using fallback

Vincent Jardin (1):
net: fsl_ls_mdio: add match fsl,fman-memac-mdio

Vitaliy Sochnev (1):
net: e1000: use all RX descriptors

Yixun Lan (1):
net: dwc_eth_qos: spacemit: add support for K3 SoC

Yuxiao Zhang (1):
net: dhcp6 use link local address

kongchen (2):
net: dwc_eth_qos: bring PHY up before triggering DMA soft reset
net: phy: add support for Maxio MAE0621A Ethernet PHYs

 boot/pxe_utils.c                     |    4 +-
 cmd/Kconfig                          |   59 +-
 cmd/lwip/Makefile                    |    1 +
 cmd/lwip/bootp.c                     |    8 +
 configs/qemu-xtensa-dc233c_defconfig |    2 +-
 doc/usage/cmd/sntp.rst               |    4 +-
 drivers/net/Kconfig                  |    9 +
 drivers/net/Makefile                 |    1 +
 drivers/net/designware.c             |   71 +--
 drivers/net/designware.h             |    1 +
 drivers/net/dwc_eth_qos.c            |   57 +-
 drivers/net/dwc_eth_qos.h            |    1 +
 drivers/net/dwc_eth_qos_rockchip.c   |   21 +-
 drivers/net/dwc_eth_qos_spacemit.c   |  313 ++++++++++
 drivers/net/dwmac_meson8b.c          |    3 +
 drivers/net/dwmac_s700.c             |    3 +
 drivers/net/dwmac_socfpga.c          |    3 +
 drivers/net/dwmac_thead.c            |    3 +
 drivers/net/e1000.c                  |   87 ++-
 drivers/net/eth-phy-uclass.c         |   38 +-
 drivers/net/fsl_ls_mdio.c            |    2 +
 drivers/net/gmac_rockchip.c          |    3 +
 drivers/net/phy/Kconfig              |    8 +
 drivers/net/phy/Makefile             |    1 +
 drivers/net/phy/dp83867.c            |    4 +-
 drivers/net/phy/maxio.c              |  228 +++++++
 drivers/net/phy/phy.c                |   12 +-
 include/efi_loader.h                 |    7 +-
 include/net-common.h                 |    8 +-
 include/net-lwip.h                   |    1 +
 include/pxe_utils.h                  |    2 +-
 lib/efi_loader/efi_net.c             |   72 ++-
 lib/lwip/lwip/src/core/ipv4/dhcp.c   |   39 +-
 lib/lwip/lwip/src/include/lwip/opt.h |   67 ++
 lib/lwip/u-boot/lwip-dhcp.h          |   28 +
 lib/lwip/u-boot/lwipopts.h           |   78 ++-
 net/Kconfig                          |   43 +-
 net/bootp.c                          |    6 +-
 net/lwip/Makefile                    |    4 +-
 net/lwip/dhcp.c                      | 1106 +++++++++++++++++++++++++++++++---
 net/lwip/net-lwip.c                  |    6 +-
 net/lwip/nfs.c                       |   68 +--
 net/mdio-mux-uclass.c                |   39 ++
 net/net-common.c                     |   22 +-
 net/net.c                            |    3 +-
 net/net6.c                           |   25 +-
 test/dm/Makefile                     |   12 +
 test/dm/lwip.c                       |    2 +
 test/dm/lwip_bootp.c                 |  573 ++++++++++++++++++
 test/dm/lwip_dhcp.c                  |  364 +++++++++++
 test/dm/lwip_dhcp_options.c          |  691 +++++++++++++++++++++
 test/dm/lwip_dhcp_policy.c           |  286 +++++++++
 test/dm/lwip_dhcp_proxy.c            |  461 ++++++++++++++
 test/dm/lwip_nfs.c                   |   61 ++
 test/dm/nfs.c                        |    3 +-
 55 files changed, 4696 insertions(+), 328 deletions(-)
 create mode 100644 cmd/lwip/bootp.c
 create mode 100644 drivers/net/dwc_eth_qos_spacemit.c
 create mode 100644 drivers/net/phy/maxio.c
 create mode 100644 lib/lwip/u-boot/lwip-dhcp.h
 create mode 100644 test/dm/lwip_bootp.c
 create mode 100644 test/dm/lwip_dhcp.c
 create mode 100644 test/dm/lwip_dhcp_options.c
 create mode 100644 test/dm/lwip_dhcp_policy.c
 create mode 100644 test/dm/lwip_dhcp_proxy.c
 create mode 100644 test/dm/lwip_nfs.c

CI link: https://git.u-boot-project.org/u-boot/custodians/u-boot-net/-/pipelines/1527

Thanks,

Signature · 1 line
Jerome
#1 lore raw
Quoted 21 lines · Jerome Forissier

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Quoted 6 lines

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

Now that I've fixed the sage lab in CI[1] I've found a run-time failure.

[snip]

Quoted 1 line

James Hilliard (20):

[snip]

Quoted 1 line

net: lwip: finish DHCP before starting autoload

Fails on BeagleBone Black with lwIP enabled, none of the network tests run and the log output is:
=> setenv autoload no
=> dhcp
link up on port 0, speed 100, full duplex
=>
and we never get an IP and so can't network.

[1]: I still owe documenting better, but you can either git push .. '-o ci.variable="SAGE_LAB=1"' or add pushOption = ci.variable="SAGE_LAB=1" under [push] in .git/config

Signature · 1 line
Tom
#2 lore raw
Quoted 38 lines · Tom Rini
Quoted 21 lines · Jerome Forissier

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Quoted 6 lines

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

Now that I've fixed the sage lab in CI[1] I've found a run-time failure.

[snip]

Quoted 1 line

James Hilliard (20):

[snip]

Quoted 1 line

net: lwip: finish DHCP before starting autoload

Quoted 7 lines

Fails on BeagleBone Black with lwIP enabled, none of the network tests run and the log output is:
=> setenv autoload no
=> dhcp
link up on port 0, speed 100, full duplex
=>
and we never get an IP and so can't network.

I think this should fix it:
https://lore.kernel.org/all/[email protected]/

Quoted 6 lines

[1]: I still owe documenting better, but you can either git push .. '-o ci.variable="SAGE_LAB=1"' or add pushOption = ci.variable="SAGE_LAB=1" under [push] in .git/config

--
Tom

#3 lore raw
Quoted 47 lines · James Hilliard
Quoted 38 lines · Tom Rini
Quoted 21 lines · Jerome Forissier

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Quoted 6 lines

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

Now that I've fixed the sage lab in CI[1] I've found a run-time failure.

[snip]

Quoted 1 line

James Hilliard (20):

[snip]

Quoted 1 line

net: lwip: finish DHCP before starting autoload

Quoted 7 lines

Fails on BeagleBone Black with lwIP enabled, none of the network tests run and the log output is:
=> setenv autoload no
=> dhcp
link up on port 0, speed 100, full duplex
=>
and we never get an IP and so can't network.

Quoted 2 lines

I think this should fix it:
https://lore.kernel.org/all/[email protected]/

Are there likely other drivers with this problem?

Signature · 1 line
Tom
#4 lore raw
Quoted 49 lines · Tom Rini
Quoted 47 lines · James Hilliard
Quoted 45 lines · Tom Rini
Quoted 21 lines · Jerome Forissier

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Quoted 6 lines

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

Now that I've fixed the sage lab in CI[1] I've found a run-time failure.

[snip]

Quoted 1 line

James Hilliard (20):

[snip]

Quoted 1 line

net: lwip: finish DHCP before starting autoload

Fails on BeagleBone Black with lwIP enabled, none of the network tests run and the log output is:
=> setenv autoload no
=> dhcp
link up on port 0, speed 100, full duplex
=>
and we never get an IP and so can't network.

Quoted 4 lines
Quoted 2 lines

I think this should fix it:
https://lore.kernel.org/all/[email protected]/

Are there likely other drivers with this problem?

Yeah, this should fix them:
https://lore.kernel.org/u-boot/[email protected]/T/

Quoted 3 lines

--
Tom

#5 lore raw
Quoted 50 lines · James Hilliard
Quoted 49 lines · Tom Rini
Quoted 47 lines · James Hilliard
Quoted 45 lines · Tom Rini
Quoted 21 lines · Jerome Forissier

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Quoted 6 lines

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

Now that I've fixed the sage lab in CI[1] I've found a run-time failure.

[snip]

Quoted 1 line

James Hilliard (20):

[snip]

Quoted 1 line

net: lwip: finish DHCP before starting autoload

Fails on BeagleBone Black with lwIP enabled, none of the network tests run and the log output is:
=> setenv autoload no
=> dhcp
link up on port 0, speed 100, full duplex
=>
and we never get an IP and so can't network.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I think this should fix it:
https://lore.kernel.org/all/[email protected]/

Are there likely other drivers with this problem?

Yeah, this should fix them:
https://lore.kernel.org/u-boot/[email protected]/T/

Thanks. Lets drop this patch from the PR for now (so please send a new one Jerome) and take that change along with all the driver fixes in the next one, once there's been time for people to review.

Signature · 1 line
Tom
#6 lore raw
Quoted 54 lines · Tom Rini
Quoted 53 lines · James Hilliard
Quoted 52 lines · Tom Rini
Quoted 49 lines · James Hilliard
Quoted 38 lines · Tom Rini
Quoted 21 lines · Jerome Forissier

Hi Tom,

The following changes since commit ed869863c7e2aca50d57a05d843830dd843138c4:

Merge tag 'u-boot-marvell-next-20261005' of https://git.u-boot-project.org/u-boot/custodians/u-boot-marvell into next (2026-10-05 10:40:38 -0600)

are available in the Git repository at:

https://git.u-boot-project.org/u-boot/custodians/u-boot-net.git/ tags/net-next-20261009

for you to fetch changes up to 28ddd369e2f7199539cdefe22ce014c592b890bd:

net: dwc_eth_qos: spacemit: add support for K3 SoC (2026-10-09 18:58:10 +0200)

*** Please note ***

Commit "qemu-xtensa: Increase the U-Boot memory reservation" fixes a build error detected by CI that would otherwise be caused by "net: e1000: use all RX descriptors". I did NOT send that one out for review to avoid delaying this pull request, but if you'd like me to do otherwise just let me know.

Quoted 6 lines

Similarly, the test added by "test: net: cover lwIP DHCP autoload handoff" initally failed CI and I incorporated my own fix (see the commit description).

----------------------------------------------------------------
Pull request net-next 20261009.

Now that I've fixed the sage lab in CI[1] I've found a run-time failure.

[snip]

Quoted 1 line

James Hilliard (20):

[snip]

Quoted 1 line

net: lwip: finish DHCP before starting autoload

Quoted 7 lines

Fails on BeagleBone Black with lwIP enabled, none of the network tests run and the log output is:
=> setenv autoload no
=> dhcp
link up on port 0, speed 100, full duplex
=>
and we never get an IP and so can't network.

I think this should fix it:
https://lore.kernel.org/all/[email protected]/

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

Are there likely other drivers with this problem?

Yeah, this should fix them:
https://lore.kernel.org/u-boot/[email protected]/T/

Thanks. Lets drop this patch from the PR for now (so please send a new one Jerome) and take that change along with all the driver fixes in the next one, once there's been time for people to review.

Alright, new PR is coming. I had to drop the whole series ("net: lwip: restore BOOTP, DHCPv4 boot policy and PXE parity") because removing only "net: lwip: finish DHCP before starting autoload" resulted in too many conflicts and also implied changing the tests. For my next PR I'll pick up the driver fixes first ("[PATCH v2 0/8] net:
return -EAGAIN when no RX packet is ready") then apply the BOOTP/DHCPv4/PXE series on top.

Thanks,

Signature · 1 line
Jerome