diff options
-rw-r--r-- | templates/interfaces/ethernet/node.tag/smp_affinity/node.def | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def index a444ae92..098287cc 100644 --- a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def +++ b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def @@ -9,6 +9,8 @@ # the system. # +priority: 319 # Failure barrier only - no ordering constraints + type: txt help: Set CPU interrupt affinity mask for this interface @@ -30,6 +32,7 @@ update: if [ "$VAR(@)" = "auto" ]; then echo "Setting SMP affinity for $VAR(../@) automatically." sudo /opt/vyatta/sbin/vyatta-auto-irqaffin.pl --setup $VAR(../@) + exit 0 else sudo /opt/vyatta/sbin/vyatta-irqaffin set $VAR(../@) $VAR(@) if [ $? -ne 0 ]; then @@ -40,6 +43,6 @@ update: delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0 if ! sudo /opt/vyatta/sbin/vyatta-irqaffin reset $VAR(../@); then - echo "Error deleting CPU affinity mask on interface $VAR(../@)" - exit 1 + echo "Warning: Can't reset CPU affinity mask on interface $VAR(../@)" + exit 0 fi |