404507
From 9d000db886030a45b1d8d016dd884db6b61419de Mon Sep 17 00:00:00 2001
404507
Message-Id: <9d000db886030a45b1d8d016dd884db6b61419de@dist-git>
404507
From: Michal Privoznik <mprivozn@redhat.com>
404507
Date: Mon, 13 Nov 2017 14:26:00 +0100
404507
Subject: [PATCH] Revert "virNetDevSupportBandwidth: Enable QoS for vhostuser"
404507
404507
https://bugzilla.redhat.com/show_bug.cgi?id=1497410
404507
404507
This reverts commit bc8a99ef06417a2303ccab455f9f045e2a617916.
404507
404507
The vhostuser is not a TAP. Therefore our QoS code is not able to
404507
set any bandwidth. I don't really understand what I was thinking.
404507
404507
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
404507
(cherry picked from commit 676768edeb28689c48f8fe9b6923003c1ed39584)
404507
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
404507
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
404507
---
404507
 src/conf/netdev_bandwidth_conf.h | 2 +-
404507
 1 file changed, 1 insertion(+), 1 deletion(-)
404507
404507
diff --git a/src/conf/netdev_bandwidth_conf.h b/src/conf/netdev_bandwidth_conf.h
404507
index c378280654..30f988953c 100644
404507
--- a/src/conf/netdev_bandwidth_conf.h
404507
+++ b/src/conf/netdev_bandwidth_conf.h
404507
@@ -46,9 +46,9 @@ static inline bool virNetDevSupportBandwidth(virDomainNetType type)
404507
     case VIR_DOMAIN_NET_TYPE_NETWORK:
404507
     case VIR_DOMAIN_NET_TYPE_DIRECT:
404507
     case VIR_DOMAIN_NET_TYPE_ETHERNET:
404507
-    case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
404507
         return true;
404507
     case VIR_DOMAIN_NET_TYPE_USER:
404507
+    case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
404507
     case VIR_DOMAIN_NET_TYPE_SERVER:
404507
     case VIR_DOMAIN_NET_TYPE_CLIENT:
404507
     case VIR_DOMAIN_NET_TYPE_MCAST:
404507
-- 
404507
2.15.0
404507