From eb053f07449e7ea9b0930d9ef1e14e9ef7cabd1a Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Fri, 11 Jun 2010 15:56:13 -0700 Subject: add support for bnx2x cards to auto smp affinity scripts --- scripts/vyatta-auto-irqaffin.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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; -- cgit v1.2.3