[libvirt] [PATCH v3 2/2] network: Add code for setting network bandwidth for ethernet interfaces

Anirban Chakraborty abchak at juniper.net
Wed Oct 8 19:59:19 UTC 2014


Signed-off-by: Anirban Chakraborty <abchak at juniper.net>
---
 src/conf/domain_conf.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index f03599e..91da1ec 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2852,7 +2852,8 @@ static inline bool virNetDevSupportBandwidth(int type)
 {
     return ((type == VIR_DOMAIN_NET_TYPE_BRIDGE ||
      type == VIR_DOMAIN_NET_TYPE_NETWORK ||
-     type == VIR_DOMAIN_NET_TYPE_DIRECT) ? true : false);
+     type == VIR_DOMAIN_NET_TYPE_DIRECT ||
+     type == VIR_DOMAIN_NET_TYPE_ETHERNET) ? true : false);
 };

 #endif /* __DOMAIN_CONF_H */
-- 
1.9.1




More information about the libvir-list mailing list