[pve-devel] [PATCH] add multiqueues field to nic form

Alexandre Derumier aderumier at odiso.com
Thu Feb 12 13:53:03 CET 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager/Parser.js           |    3 +++
 www/manager/qemu/NetworkEdit.js |   10 ++++++++++
 2 files changed, 13 insertions(+)

diff --git a/www/manager/Parser.js b/www/manager/Parser.js
index ce0ddf6..56ea250 100644
--- a/www/manager/Parser.js
+++ b/www/manager/Parser.js
@@ -66,6 +66,9 @@ Ext.define('PVE.Parser', { statics: {
 	if (net.rate) {
 	    netstr += ",rate=" + net.rate;
 	}
+	if (net.queues) {
+	    netstr += ",queues=" + net.queues;
+	}
 	if (net.disconnect) {
 	    netstr += ",link_down=" + net.disconnect;
 	}
diff --git a/www/manager/qemu/NetworkEdit.js b/www/manager/qemu/NetworkEdit.js
index d4c358b..033e7d2 100644
--- a/www/manager/qemu/NetworkEdit.js
+++ b/www/manager/qemu/NetworkEdit.js
@@ -19,6 +19,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 	}
 	me.network.macaddr = values.macaddr;
 	me.network.disconnect = values.disconnect;
+	me.network.queues = values.queues;
 
 	if (values.rate) {
 	    me.network.rate = values.rate;
@@ -150,6 +151,15 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 		allowBlank: true
 	    },
 	    {
+		xtype: 'numberfield',
+		name: 'queues',
+		fieldLabel: gettext('Multiqueues'),
+		minValue: 1,
+		maxValue: 8,
+		value: '',
+		allowBlank: true
+	    },
+	    {
 		xtype: 'pvecheckbox',
 		fieldLabel: gettext('Disconnect'),
 		name: 'disconnect'
-- 
1.7.10.4




More information about the pve-devel mailing list