On 12/12/25 12:32, Andrew Goodbody wrote:
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]>
---
Changes in v2:
- Corrected capitalisation of lwIP
- Stopped moving some variables into common code that are not used by
   lwIP
- NULL check a pbuf after allocation and before use
- Add patch to enable CMD_NFS on qemu_arm64_lwip_defconfig
- Link to v1: 
https://lore.kernel.org/r/[email protected]

---
Andrew Goodbody (6):
       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
       configs: qemu_arm64_lwip_defconfig: enable CMD_NFS

  cmd/Kconfig                       |  28 +-
  cmd/lwip/Makefile                 |   1 +
  cmd/lwip/nfs.c                    |  11 +
  configs/qemu_arm64_lwip_defconfig |   1 +
  include/net-common.h              |  29 +-
  include/net-legacy.h              |  22 -
  include/net-lwip.h                |   1 +
  net/Makefile                      |   1 +
  net/lwip/Makefile                 |   1 +
  net/lwip/net-lwip.c               |   5 -
  net/lwip/nfs.c                    | 286 +++++++++++++
  net/net-common.c                  |  12 +
  net/net.c                         |  12 -
  net/nfs-common.c                  | 863 ++++++++++++++++++++++++++++++++++++++
  net/nfs-common.h                  | 123 ++++++
  net/nfs.c                         | 849 +------------------------------------
  net/nfs.h                         |  59 ---
  17 files changed, 1355 insertions(+), 949 deletions(-)
---
base-commit: 59f9fcc1f514762674ac07c13c2a85f7aace7250
change-id: 20251029-lwip_nfs-5385efca71bc

Best regards,

Tested-by: Michal Simek <[email protected]>

On vek385. I am missing some TODO to say that this is NFS v3 (or lower but I did test only v3) via UDP.
Not sure how much work is to enable TCP when we are in LWIP already
but some information about NFSv4 would be good too.

Thanks,
Michal

Reply via email to