diff options
author | Robert Bays <rbays@roatan.(none)> | 2010-06-11 15:56:13 -0700 |
---|---|---|
committer | Robert Bays <rbays@roatan.(none)> | 2010-06-11 15:56:13 -0700 |
commit | 92caede0cd3f9a46e1cd8da247eb666a8b958110 (patch) | |
tree | b74efe4233726aa21571ae8486dad9cbc680c28b | |
parent | 9f50272741db8d90dcf46805a0e55c25b7e1f46b (diff) | |
download | vyatta-cfg-92caede0cd3f9a46e1cd8da247eb666a8b958110.tar.gz vyatta-cfg-92caede0cd3f9a46e1cd8da247eb666a8b958110.zip |
add support for bnx2x cards to auto smp affinity scripts
-rw-r--r-- | scripts/vyatta-auto-irqaffin.pl | 4 |
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; |