]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[vmware] Use driver-private data to hold GuestInfo settings block
authorMichael Brown <mcb30@ipxe.org>
Wed, 13 Sep 2023 21:43:24 +0000 (22:43 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 14 Sep 2023 11:55:56 +0000 (12:55 +0100)
commit8cbf248198f3bc66c52b2340b4decf293af8af47
tree0f5d2ebeeb4c66f2e4121f4e26b39fd0336a7984
parent8b1d34badf321668f830c78e6803d718446b57ef
[vmware] Use driver-private data to hold GuestInfo settings block

Simplify the per-netdevice GuestInfo settings code by using
driver-private data to hold the settings block, instead of using a
separate allocation.

The settings block (if existent) will be automatically unregistered
when the parent network device settings block is unregistered, and no
longer needs to be separately freed.  The guestinfo_net_remove()
function may therefore be omitted completely.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/interface/vmware/guestinfo.c