freebsd-dev/sys/boot/efi/libefi
Toomas Soome da8fb057e5 loader: network read rework
The current read from network is working from up to down - we have some
protocol needing the data from the network, so we build the buffer space
for that protocol, add the extra space for headers and pass this buffer
down to be filled by nif get call in hope, we have guessed the incoming
packet size right. Amazingly enough this approach mostly does work, but
not always...

So, this update does work from down to up - we allocate buffer (based
on MTU or frame size info), fill it up, and pass on for upper layers.
The obvious problem is that when we should free the buffer - if at all.

In the current implementation the upper layer will free the packet on error
or when the packet is no longer needed.

While working on the issue, the additional issue did pop up - the bios
implementation does not have generic get/put interface but is using pxe
udpsend/udpreceive instead. So the udp calls are gone and undi interface
is implemented instead. Which in turn means slight other changes as we
do not need to have duplicated pxe implementation and can just use dev_net.

To align packet content, the actual read from nic is using shifted buffer by
ETHER_ALIGN (2).

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D10232
2017-05-06 20:32:27 +00:00
..
delay.c
devpath.c loader: Replace EFI part devices. 2017-02-06 09:18:47 +00:00
efi_console.c When the EFI implementation (like U-Boot) does not support WaitForKey, we 2016-08-29 20:01:53 +00:00
efichar.c Share UCS2/UTF8 routines between boot loader and userland. 2017-03-09 00:24:01 +00:00
efinet.c loader: network read rework 2017-05-06 20:32:27 +00:00
efipart.c loader: F_READ/F_WRITE should be checked against masked flag 2017-04-18 18:07:54 +00:00
env.c loader: libefi/env.c warnings in arm build 2017-02-03 16:39:10 +00:00
errno.c
handles.c Add EFI ZFS boot support 2016-01-15 02:33:47 +00:00
libefi.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
Makefile Do not use -msoft-float with intention of disabling FP on aarch64 2017-04-07 22:58:25 +00:00
Makefile.depend META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
time_event.c The getsecs() function is implemented in platform- and bootfw-specific 2016-09-22 06:24:40 +00:00
time.c loader: network read rework 2017-05-06 20:32:27 +00:00
wchar.c loader.efi environment related cleanups 2017-02-01 08:46:59 +00:00