This series ports the existing NFS code so that it can be used with both the legacy network code and also with LWIP. Firstly some legacy network code, mostly variables, is moved into common files so that it is accessible to LWIP. Secondly the NFS code is refactored so that the parts that are not specific to the network code can be shared with both network implementations. Finally the LWIP specific parts needed to interface the NFS shared code to that network stack are added and enabled.
Signed-off-by: Andrew Goodbody <[email protected]> --- Andrew Goodbody (5): net: move net_state to net-common net: Move some variables to net-common files net: nfs: Add licence header net: nfs: Move most NFS code to common files net: lwip: nfs: Port the NFS code to work with LWIP cmd/Kconfig | 28 +- cmd/lwip/Makefile | 1 + cmd/lwip/nfs.c | 11 + include/net-common.h | 38 ++- include/net-legacy.h | 26 -- include/net-lwip.h | 1 + net/Makefile | 1 + net/lwip/Makefile | 1 + net/lwip/net-lwip.c | 5 - net/lwip/nfs.c | 282 +++++++++++++++++ net/net-common.c | 21 ++ net/net.c | 23 -- net/nfs-common.c | 863 +++++++++++++++++++++++++++++++++++++++++++++++++++ net/nfs-common.h | 123 ++++++++ net/nfs.c | 849 +------------------------------------------------- net/nfs.h | 59 ---- 16 files changed, 1368 insertions(+), 964 deletions(-) --- base-commit: 59f9fcc1f514762674ac07c13c2a85f7aace7250 change-id: 20251029-lwip_nfs-5385efca71bc Best regards, -- Andrew Goodbody <[email protected]>

