summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-02-04 14:20:42 -0800
committerBob Gilligan <gilligan@vyatta.com>2008-02-04 14:20:42 -0800
commit8239413851eb99c62fb9422c6bc9222f1e22e4e4 (patch)
treef43bdbd2474e61db2ad6e417e39c196744782ff8 /templates
parent7b05d404a16526976f6e144c29f40a8881db19e1 (diff)
downloadvyatta-cfg-8239413851eb99c62fb9422c6bc9222f1e22e4e4.tar.gz
vyatta-cfg-8239413851eb99c62fb9422c6bc9222f1e22e4e4.zip
Bugfix: 2653
Don't allow the bitmask argument of the smp_affinity parameter to contain more bits than there are CPUs on the system.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/smp_affinity/node.def18
1 files changed, 17 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def
index cd1ef41..edc78de 100644
--- a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def
+++ b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def
@@ -1,6 +1,22 @@
-multi:
+#
+#
+# Configuration template for interface.ethernet.name.smp_affinity
+#
+# Configure the CPUs that the associated interface will interrupt.
+# SMP affinity is configured by a hexidecimal bitmask that specifies the
+# CPUs that the system can interrupt. The SMP affinity bitmask must contain
+# at least one bits, and may only contain as many bits as there are CPUs on
+# the system.
+#
+
type: txt
+
help: Set CPU interrupt affinity mask for this interface
+
+comp_help: Hexidecimal bitmask representing CPUs that this NIC will interrupt
+
syntax:expression: exec "/opt/vyatta/sbin/vyatta-irqaffin check $VAR(../@) $VAR(@)"
+
create:expression: "sudo /opt/vyatta/sbin/vyatta-irqaffin set $VAR(../@) $VAR(@)"; "Error setting CPU affinity mask $VAR(@) on interface $VAR(../@)"
+
delete:expression: "sudo /opt/vyatta/sbin/vyatta-irqaffin reset (../@)"; "Error deleting CPU affinity mask on interface $VAR(../@)"