]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virPCIGetVirtualFunctions: Simplify cleanup of returned data
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 14:45:36 +0000 (16:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Aug 2021 08:09:00 +0000 (10:09 +0200)
commitc97518d9b833a607f29b9bb02e3fbe74c011c088
tree2aabb0939321e0438b77388e4b78ba14012bdf39
parent00f804c1cf28aa794a25c6195db8dae4ee666c1c
virPCIGetVirtualFunctions: Simplify cleanup of returned data

Introduce a struct for holding the list of VFs returned by
virPCIGetVirtualFunctions so that we can employ automatic memory
clearing and also allow querying more information at once.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/node_device_conf.c
src/libvirt_private.syms
src/util/virnetdev.c
src/util/virpci.c
src/util/virpci.h