summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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;