net: Provide a function to run network operations
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:23 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:16 +0000 (13:12 -0600)
commit0f094b8b146679c3980cd2febde4e902bbc4405d
treec8ddca55cbabb720c0ef749a2432589e16fd9301
parentf278f0cb4996398720328ce33e057678f6ea4109
net: Provide a function to run network operations

Add a new netboot_run() function which can be used for simple network
operations, such as loading a file. Put the implementation in an
internal function, used by the existing code.

Place this function into the net/ code, so that it does not need the
command line to be available.

Document which network operations are supported, i.e. a limited subset,
for now.

For the one board which uses lwip, it is not quite clear how to avoid
using the cmdline interface. This will need some discussion.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/net.c
include/net-common.h
net/net.c