[SLOF] [PATCH v3 0/6] Integrate libnet into paflof instead of net-snk

Thomas Huth thuth at redhat.com
Wed Oct 12 21:44:02 AEDT 2016


After v1 of this patch series already introduced some glue code in
paflof that is needed for linking it with libnet, we can finally
switch the libnet from net-snk to paflof. This way, network booting
is now much faster (at least with QEMU TCG), since we do not have to
go through the client interface for each network packet anymore.
We also save some precious space in the firmware binary and RAM now,
since we do not need net-snk for board-qemu anymore.
Note that this patch series still does not get rid of net-snk
completely since it contains the biosemu code for board-js2x.
Moving that into a proper library will be done in a later patch
series, since I wanted to keep this one here small and reviewable.

v3:
- Dropped the patches that have been accepted from v2 already
- Moved hunks from clients/net-snk/app/main.c to earlier patches
- Improved the commit messages of some patches

v2:
- Dropped the patches that have been accepted from v1 already
- Re-arranged the order of the patches a little bit. Now
  it should be bisectable, without breaking ping or something
  else inbetween.
- Added two cleanup patches at the end to simplify the load
  function of the obp-tftp package.

Thomas Huth (6):
  Link libnet code to Paflof and add a wrapper for netboot()
  Add a Forth-to-C wrapper for the ping command, too
  Do not link libnet to net-snk anymore, and remove net-snk from
    board-qemu
  libnet: Simplify the Forth-to-C wrapper of ping()
  libnet: Simplify the net-load arguments passing
  obp-tftp: Remove the ciregs-buffer

 board-qemu/Makefile           |  2 +-
 board-qemu/romfs/boot_rom.ffs |  1 -
 board-qemu/slof/Makefile      |  8 +++++---
 clients/net-snk/Makefile      |  2 +-
 clients/net-snk/app/Makefile  |  2 +-
 clients/net-snk/app/main.c    |  5 -----
 lib/libnet/Makefile           |  3 +--
 lib/libnet/libnet.code        | 20 ++++++++++++++++++++
 lib/libnet/libnet.in          |  3 +++
 lib/libnet/netapps.h          |  5 +++--
 lib/libnet/netload.c          | 23 +++++++++++++----------
 lib/libnet/ping.c             | 20 ++++++++++++--------
 slof/fs/packages/obp-tftp.fs  | 29 ++++++-----------------------
 13 files changed, 66 insertions(+), 57 deletions(-)
 create mode 100644 lib/libnet/libnet.code
 create mode 100644 lib/libnet/libnet.in

-- 
1.8.3.1



More information about the SLOF mailing list