summaryrefslogtreecommitdiff
path: root/scripts/vyatta-auto-irqaffin.pl
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-03-09 15:52:24 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-03-09 15:52:24 -0800
commitddbef54cd41e417cacf417b013b79bd8dac75102 (patch)
tree819aed0e1405280f36aa3d13062a04872c89b3a4 /scripts/vyatta-auto-irqaffin.pl
parent697ce5a4ab6866b167374c2928ee532d64cc05d1 (diff)
downloadvyatta-cfg-ddbef54cd41e417cacf417b013b79bd8dac75102.tar.gz
vyatta-cfg-ddbef54cd41e417cacf417b013b79bd8dac75102.zip
Bugfix 5021: Make smp_affinity configuration tolerant of failures.
Diffstat (limited to 'scripts/vyatta-auto-irqaffin.pl')
-rw-r--r--scripts/vyatta-auto-irqaffin.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/vyatta-auto-irqaffin.pl b/scripts/vyatta-auto-irqaffin.pl
index 8ba17ff..7f5fe22 100644
--- a/scripts/vyatta-auto-irqaffin.pl
+++ b/scripts/vyatta-auto-irqaffin.pl
@@ -342,9 +342,13 @@ if (defined $setup_ifname) {
# one used by Broadcom NICs.
$driver_style="broadcom";
}
- } else {
+ } elsif ($numints == 1) {
# It is a single queue NIC.
$driver_style="single";
+ } else {
+ # $numints must be 0
+ printf("Unable to determine IRQs for interface $ifname.\n");
+ exit 0;
}
$driver_func = $driver_hash{$driver_style};