]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: interface: remove setting noqueue for ovs port
authorzhangjl02 <zhangjl02@inspur.com>
Wed, 7 Jul 2021 09:18:18 +0000 (17:18 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Jul 2021 07:40:13 +0000 (09:40 +0200)
Return 0 directly if the port is ovs managed. When the ovs port is set
noqueue, qos config on this port will not work.

Signed-off-by: Jinsheng Zhang <zhangjl02@inspur.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c

index 3af678a2831f500545cdbb4672e6b45ebdd587d6..5fcd5e7f8207a31b2bf8dc5c456f16819f213354 100644 (file)
@@ -11599,7 +11599,8 @@ qemuDomainInterfaceSetDefaultQDisc(virQEMUDriver *driver,
         actualType == VIR_DOMAIN_NET_TYPE_NETWORK ||
         actualType == VIR_DOMAIN_NET_TYPE_BRIDGE ||
         actualType == VIR_DOMAIN_NET_TYPE_DIRECT) {
-        if (virNetDevBandwidthSetRootQDisc(net->ifname, "noqueue") < 0)
+        if (!virDomainNetDefIsOvsport(net) &&
+            virNetDevBandwidthSetRootQDisc(net->ifname, "noqueue") < 0)
             return -1;
     }