summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Bays <rbays@roatan.(none)>2010-06-11 15:56:13 -0700
committerRobert Bays <rbays@roatan.(none)>2010-06-11 16:12:26 -0700
commiteb053f07449e7ea9b0930d9ef1e14e9ef7cabd1a (patch)
treefa537780601f8b8f69533bd4c4ff526121e8c311 /scripts
parentf9eb242516d03ac9788ae72787c292a0f990f9ae (diff)
downloadvyatta-cfg-eb053f07449e7ea9b0930d9ef1e14e9ef7cabd1a.tar.gz
vyatta-cfg-eb053f07449e7ea9b0930d9ef1e14e9ef7cabd1a.zip
add support for bnx2x cards to auto smp affinity scripts
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-auto-irqaffin.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-auto-irqaffin.pl b/scripts/vyatta-auto-irqaffin.pl
index 7f5fe22..43a6eb8 100644
--- a/scripts/vyatta-auto-irqaffin.pl
+++ b/scripts/vyatta-auto-irqaffin.pl
@@ -184,7 +184,7 @@ sub broadcom_func{
log_msg("broadcom_func was called.\n");
# Figure out how many queues we have
- $num_queues=`grep "$ifname-" /proc/interrupts | wc -l`;
+ $num_queues=`egrep "$ifname\[-.\]\{1\}" /proc/interrupts | wc -l`;
$num_queues =~ s/\n//;
log_msg("num_queues=$num_queues\n");
@@ -209,7 +209,7 @@ sub broadcom_func{
log_msg ("queue=$queue cpu=$cpu cpu_bit=$cpu_bit cpu_hex=$cpu_hex\n");
# Get the IRQ number for the queue
- my $irq=`grep "$ifname-$queue\$" /proc/interrupts | awk -F: '{print \$1}'`;
+ my $irq=`egrep "$ifname\[-.fp\]*$queue\$" /proc/interrupts | awk -F: '{print \$1}'`;
$irq =~ s/\n//;
$irq =~ s/ //g;