mbox series

[v2,00/11] lwIP sandbox tests

Message ID 20250415211819.1254435-1-jerome.forissier@linaro.org
Headers show
Series lwIP sandbox tests | expand

Message

Jerome Forissier April 15, 2025, 9:17 p.m. UTC
** Note ** I am resending essentially to have Simon's R-b tag on all
commits in patchwork; no review requested. Sorry for the noise.

This series enables most of the driver model tests for network features
with NET_LWIP (test/dm/eth.c and test/dm/dsa.c).
- Patches 1-4 fix a few bugs (device selection) and add missing features
(sandbox timer, restart support) to NET_LWIP
- Patch 5 decouples the sandbox ethernet driver from NET
- Patch 6 adds missing static IP addresses that NET_LWIP needs
- Patches 7 and 8 update the tests to use a common interface to send
  ICMP packets (do_ping(...) instead of net_loop(PING))
- Patch 9 enables DM_DSA and the associated tests with NET_LWIP
- Patch 10 adds a sandbox64 configuration with NET_LWIP=y
- Patch 11 adds that configuration to the CI

Changes in v2:
- Rebase on master and therefore drop patch "net: lwip: do_ping() should
  return CMD_RET_FAILURE when no device" which is merged already
- Apply Simon's Reviewed-by: tag to each and every commit

Jerome Forissier (11):
  net: lwip: fix initialization sequence before a command
  net: lwip: provide net_start_again()
  net: lwip: add restart support to ping
  net: lwip: use timer_early_get_count() when CONFIG_SANDBOX_TIMER=y
  drivers: net: sandbox: add support for NET_LWIP
  sandbox: provide static IP addresses for eth{2,3,5,6,7}
  net: ping: make do_ping() available via <net.h>
  test: dm: eth, dsa: update tests for NET_LWIP
  net: lwip: allow DM_DSA=y when NET_LWIP=y
  configs: add sandbox64_lwip_defconfig
  CI: add sandbox64_lwip

 .azure-pipelines.yml             |   2 +
 .gitlab-ci.yml                   |  11 ++
 board/sandbox/sandbox.env        |   5 +
 cmd/net.c                        |   3 +-
 configs/sandbox64_lwip_defconfig |   5 +
 drivers/net/Kconfig              |  14 +-
 drivers/net/Makefile             |   1 -
 drivers/net/sandbox-lwip.c       |  85 -----------
 drivers/net/sandbox.c            | 240 ++++++++++++++++++++-----------
 include/net-common.h             |  15 ++
 include/net-legacy.h             |   3 -
 include/net-lwip.h               |  10 +-
 net/Makefile                     |   2 +-
 net/lwip/dhcp.c                  |   3 +-
 net/lwip/dns.c                   |   3 +-
 net/lwip/net-lwip.c              |  86 +++++++++--
 net/lwip/ping.c                  |  11 +-
 net/lwip/tftp.c                  |   5 +-
 net/lwip/wget.c                  |   6 +-
 test/dm/Makefile                 |   2 -
 test/dm/dsa.c                    |   8 +-
 test/dm/eth.c                    |  77 +++++-----
 22 files changed, 350 insertions(+), 247 deletions(-)
 create mode 100644 configs/sandbox64_lwip_defconfig
 delete mode 100644 drivers/net/sandbox-lwip.c