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