freebsd-dev/sys/boot/i386
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
..
boot0
boot0sio
boot2 xfsread inlined uses more space, so remove the inline tag. This 2017-03-29 18:35:20 +00:00
btx loader: disk io should not use alloca() 2017-02-06 18:44:15 +00:00
cdboot cdboot: add explict suffix to ambiguous or instruction 2016-12-28 23:02:01 +00:00
common loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
gptboot Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
gptzfsboot Use NO_WCAST_ALIGN instead of spelling it out as -Wno-cast-align in CFLAGS 2017-03-28 20:30:33 +00:00
kgzldr
libfirewire dosfs support in libstand is broken since r298230 2016-12-30 19:06:29 +00:00
libi386 loader: network read rework 2017-05-06 20:32:27 +00:00
loader loader: network read rework 2017-05-06 20:32:27 +00:00
mbr Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
pmbr
pxeldr
zfsboot zfsboot: drvsize() may be unusable on some systems 2017-05-04 05:26:37 +00:00
zfsloader
boot.ldscript
Makefile Restore kgzldr on i386 only 2016-02-08 16:59:52 +00:00
Makefile.inc