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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Anirban Chakraborty <abchak@xxxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]