diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-12-22 01:20:52 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-12-22 01:20:52 -0800 |
commit | e3f943f6b1fc48d0fc7a8b71636b2441e62abdc7 (patch) | |
tree | 07ede2c4db3056362deb0f283b19709a3de801a2 | |
parent | 31e75cdc2d12430bee48bc4fb405af8a8e3a338c (diff) | |
download | vyatta-cfg-quagga-e3f943f6b1fc48d0fc7a8b71636b2441e62abdc7.tar.gz vyatta-cfg-quagga-e3f943f6b1fc48d0fc7a8b71636b2441e62abdc7.zip |
Affinity script was failing to configure some queues of multi-queue NICs.
The problem was due to incorrect initialization of the $q and $cpu
variables. Their initializations were reversed.
-rwxr-xr-x | scripts/system/irq-affinity.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/system/irq-affinity.pl b/scripts/system/irq-affinity.pl index 27eae4a8..ed8063ff 100755 --- a/scripts/system/irq-affinity.pl +++ b/scripts/system/irq-affinity.pl @@ -164,9 +164,9 @@ sub first_cpu { # Assign each queue to successive cores sub assign_multiqueue { my ( $ifname, $numq, $irqmap, $irqfmt ) = @_; - my $cpu = 0; + my $cpu = first_cpu($ifname, $numq); - for ( my $q = first_cpu($ifname, $numq) ; $q < $numq ; $q++ ) { + for ( my $q = 0 ; $q < $numq ; $q++ ) { # handles multiple irq's per interface (tx/rx) foreach my $fmt (@$irqfmt) { my $name = sprintf( $fmt, $ifname, $q ); |