summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-04-13 09:05:13 -0700
committerStephen Hemminger <shemminger@vyatta.com>2011-04-13 09:05:13 -0700
commite510abef1a0ed87e7c2159f77e7105d118219d51 (patch)
treeb6f4e10a4b4126b2f26f15d09bf2175508553a74 /scripts/system
parent46c80e873091c244fca2135e46df8e74f8d62b3b (diff)
downloadvyatta-cfg-system-e510abef1a0ed87e7c2159f77e7105d118219d51.tar.gz
vyatta-cfg-system-e510abef1a0ed87e7c2159f77e7105d118219d51.zip
Fix irq naming convention mapping code
The mislabeled commit ddce08161907797fe914ba609b362d812e23fc8a Fix wrong name in get_irq_affinity Was some code to handle Broadcom device IRQ naming convention that was untested. The part that built regex was incorrectly expanding a string with regex characters.
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/irq-affinity.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/system/irq-affinity.pl b/scripts/system/irq-affinity.pl
index 34465b1e..30df39fe 100755
--- a/scripts/system/irq-affinity.pl
+++ b/scripts/system/irq-affinity.pl
@@ -296,8 +296,9 @@ sub affinity_auto {
# vmxnet3: eth0-rxtx-1
# bnx2x: eth0-fp-1
# other: eth0-1
- foreach my $sep (qw/-TxRx- -rxtx- -fp- -/) {
- my $regex = "/^$ifname$sep\d$/";
+ my @seperator = qw/- -TxRx- -rxtx- -fp-/;
+ foreach my $sep (@seperator) {
+ my $regex = '/^' . $ifname . $sep . '\d$/';
my $nq = grep { $regex } @irqnames;
if ( $nq > 0 ) {
return assign_multiqueue( $ifname, $nq, $irqmap,