]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuProcessStop: Don't try to remove QoS on already removed TAP
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 27 May 2022 14:59:54 +0000 (16:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 30 May 2022 07:14:41 +0000 (09:14 +0200)
When cleaning up after stopped domain, one of the things we do is
attempt to clear QoS settings on OVS type interfaces. Well, this
is needless because they were removed just a couple of lines
above. As a result, the attempt fails and a warning is printed
into logs, polluting them needlessly.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/313
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c

index 07acb1c427626e55cef43d24c4f08ab106c43c53..c6d965d7209e542d00b37651cc6874a679d36ccb 100644 (file)
@@ -8166,12 +8166,6 @@ void qemuProcessStop(virQEMUDriver *driver,
             else
                 VIR_WARN("Unable to release network device '%s'", NULLSTR(net->ifname));
         }
-
-        if (virDomainNetDefIsOvsport(net) &&
-            virNetDevOpenvswitchInterfaceClearQos(net->ifname, vm->def->uuid) < 0) {
-            VIR_WARN("cannot clear bandwidth setting for ovs device : %s",
-                     net->ifname);
-        }
     }
 
  retry: