1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-21 22:03:49 +03:00

qemu: interface: remove setting noqueue for ovs port

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>
This commit is contained in:
zhangjl02 2021-07-07 17:18:18 +08:00 committed by Michal Privoznik
parent 7c07b48942
commit e2c225f57c

View 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;
}