While the code that's setting default qdisc is clever enough to
not overwrite any bandwidth (potentially) set by
virNetDevBandwidthSet() (and thus the root qdisc htb is not
replaced with noqueue), it does print a debug message when that's
the case. It's needless. We can set the root qdisc beforehand and
let virNetDevBandwidthSet() overwrite it.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
break;
}
+ qemuDomainInterfaceSetDefaultQDisc(driver, net);
+
/* Set bandwidth or warn if requested and not supported. */
actualBandwidth = virDomainNetGetActualBandwidth(net);
if (actualBandwidth) {
}
}
- qemuDomainInterfaceSetDefaultQDisc(driver, net);
-
if (net->mtu &&
virNetDevSetMTU(net->ifname, net->mtu) < 0)
goto cleanup;
if (qemuInterfaceStartDevice(net) < 0)
goto cleanup;
+ qemuDomainInterfaceSetDefaultQDisc(driver, net);
+
/* Set bandwidth or warn if requested and not supported. */
actualBandwidth = virDomainNetGetActualBandwidth(net);
if (actualBandwidth) {
virNetDevSetMTU(net->ifname, net->mtu) < 0)
goto cleanup;
- qemuDomainInterfaceSetDefaultQDisc(driver, net);
-
for (i = 0; i < tapfdSize; i++) {
if (qemuSecuritySetTapFDLabel(driver->securityManager,
vm->def, tapfd[i]) < 0)