]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "virNetDevSupportBandwidth: Enable QoS for vhostuser"
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 10 Nov 2017 15:16:52 +0000 (16:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Nov 2017 05:25:16 +0000 (06:25 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1497410

This reverts commit bc8a99ef06417a2303ccab455f9f045e2a617916.

The vhostuser is not a TAP. Therefore our QoS code is not able to
set any bandwidth. I don't really understand what I was thinking.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/netdev_bandwidth_conf.h

index c378280654ed071610c44a0f738abb3d8503fef7..30f988953cfd3c1f23b74c725d4291bd0300bb93 100644 (file)
@@ -46,9 +46,9 @@ static inline bool virNetDevSupportBandwidth(virDomainNetType type)
     case VIR_DOMAIN_NET_TYPE_NETWORK:
     case VIR_DOMAIN_NET_TYPE_DIRECT:
     case VIR_DOMAIN_NET_TYPE_ETHERNET:
-    case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
         return true;
     case VIR_DOMAIN_NET_TYPE_USER:
+    case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
     case VIR_DOMAIN_NET_TYPE_SERVER:
     case VIR_DOMAIN_NET_TYPE_CLIENT:
     case VIR_DOMAIN_NET_TYPE_MCAST: