opengnsys_ipxe/src/interface
Michael Brown ae4e85bde9 [netdevice] Allocate private data for each network upper-layer driver
Allow network upper-layer drivers (such as LLDP, which attaches to
each network device in order to provide a corresponding LLDP settings
block) to specify a size for private data, which will be allocated as
part of the network device structure (as with the existing private
data allocated for the underlying device driver).

This will allow network upper-layer drivers to be simplified by
omitting memory allocation and freeing code.  If the upper-layer
driver requires a reference counter (e.g. for interface
initialisation), then it may use the network device's existing
reference counter, since this is now the reference counter for the
containing block of memory.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2023-09-13 20:23:46 +01:00
..
bofm [pci] Support systems with multiple PCI root bridges 2016-06-09 09:36:28 +01:00
efi [netdevice] Allocate private data for each network upper-layer driver 2023-09-13 20:23:46 +01:00
hyperv [malloc] Rename malloc_dma() to malloc_phys() 2020-11-05 19:13:52 +00:00
linux [rng] Allow entropy source to be selected at runtime 2023-02-17 21:29:51 +00:00
smbios [settings] Support formatting UUIDs as little-endian GUIDs 2022-01-04 14:03:12 +00:00
xen [xen] Avoid infinite loop on allocation failure in xenstore_response() 2021-04-20 13:28:57 +01:00