opnsense-src/sys/boot/efi/loader
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
..
arch Do not use -msoft-float with intention of disabling FP on aarch64 2017-04-07 22:58:25 +00:00
autoload.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
bootinfo.c Fix several instances where the boot loader ignored pager_output 2016-05-18 05:59:05 +00:00
conf.c loader: Replace EFI part devices. 2017-02-06 09:18:47 +00:00
copy.c loader.efi: use stricter check for Hyper-V 2017-03-14 08:12:14 +00:00
devicename.c loader: Replace EFI part devices. 2017-02-06 09:18:47 +00:00
loader_efi.h Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
main.c loader.efi: ResetSystem does not use data with EFI_SUCCESS 2017-05-01 16:56:34 +00:00
Makefile loader: network read rework 2017-05-06 20:32:27 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
version Move the efi loaders to be under sys/boot/efi. This will help us add 2015-04-01 08:30:40 +00:00