]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hypervisor: Introduce and use virDomainInterfaceVportRemove()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Apr 2024 12:12:37 +0000 (14:12 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Apr 2024 18:44:52 +0000 (20:44 +0200)
commitf8b5bd855f8312457fd9ad8a68fb044982bd3cc6
treefa6c0251f0ede204bb46b46799b301ca4e1537e8
parent767d92f0981025ed483d55183b5190608e28411e
hypervisor: Introduce and use virDomainInterfaceVportRemove()

Both LXC and QEMU drivers have the same code to remove vport when
removing a domain's interface. Instead of repeating the same
pattern in both drivers, move the code into hypervisor agnostic
location (src/hypervisor/) and switch to calling this new
function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/hypervisor/domain_interface.c
src/hypervisor/domain_interface.h
src/libvirt_private.syms
src/lxc/lxc_driver.c
src/lxc/lxc_process.c
src/qemu/qemu_hotplug.c