render / rpms / libvirt

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