summaryrefslogtreecommitdiff
path: root/scripts/vyatta-auto-irqaffin.pl
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-12-08 12:27:52 -0800
committerBob Gilligan <gilligan@vyatta.com>2009-12-08 12:27:52 -0800
commit259af925d72988bd35055dfd337bf1635afd3ff7 (patch)
tree0b6102ef4310c18b90bb6f040a0658761b9bc80b /scripts/vyatta-auto-irqaffin.pl
parent02204abd4644828c218cd7efa3f8575652923f20 (diff)
downloadvyatta-cfg-259af925d72988bd35055dfd337bf1635afd3ff7.tar.gz
vyatta-cfg-259af925d72988bd35055dfd337bf1635afd3ff7.zip
Bugfix 5143: Fix grep regex for NICs with >= 10 queues.
Diffstat (limited to 'scripts/vyatta-auto-irqaffin.pl')
-rw-r--r--scripts/vyatta-auto-irqaffin.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-auto-irqaffin.pl b/scripts/vyatta-auto-irqaffin.pl
index fa58420..8ba17ff 100644
--- a/scripts/vyatta-auto-irqaffin.pl
+++ b/scripts/vyatta-auto-irqaffin.pl
@@ -136,12 +136,12 @@ sub intel_func{
log_msg ("queue=$queue cpu=$cpu cpu_bit=$cpu_bit cpu_hex=$cpu_hex\n");
# Get the IRQ number for RX queue
- my $rx_irq=`grep "$ifname-rx-$queue" /proc/interrupts | awk -F: '{print \$1}'`;
+ my $rx_irq=`grep "$ifname-rx-$queue\$" /proc/interrupts | awk -F: '{print \$1}'`;
$rx_irq =~ s/\n//;
$rx_irq =~ s/ //g;
# Get the IRQ number for TX queue
- my $tx_irq=`grep "$ifname-tx-$queue" /proc/interrupts | awk -F: '{print \$1}'`;
+ my $tx_irq=`grep "$ifname-tx-$queue\$" /proc/interrupts | awk -F: '{print \$1}'`;
$tx_irq =~ s/\n//;
$tx_irq =~ s/ //g;
@@ -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=`grep "$ifname-$queue\$" /proc/interrupts | awk -F: '{print \$1}'`;
$irq =~ s/\n//;
$irq =~ s/ //g;