From 30d540abfcac1c3ebbb067a606034e2a854ee1a4 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Wed, 12 Dec 2007 10:19:53 -0800 Subject: Bugfix: 2189 Add config node to configure NIC interrupt CPU affinity on SMPs. --- templates/interfaces/ethernet/node.tag/smp_affinity/node.def | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 templates/interfaces/ethernet/node.tag/smp_affinity/node.def (limited to 'templates/interfaces') diff --git a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def new file mode 100644 index 0000000..b24be8c --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def @@ -0,0 +1,6 @@ +multi: +type: txt +help: "Set CPU interrupt affinity mask for this interface" +syntax: exec "/opt/vyatta/sbin/vyatta-irqaffin check $(../@) $(@)" +create: "sudo /opt/vyatta/sbin/vyatta-irqaffin set $(../@) $(@)"; "Error setting CPU affinity mask $(@) on interface $(../@)" +delete: "sudo /opt/vyatta/sbin/vyatta-irqaffin reset (../@)"; "Error deleting CPU affinity mask on interface $(../@)" -- cgit v1.2.3