summaryrefslogtreecommitdiff
path: root/scripts/system/irq-affinity.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/system/irq-affinity.pl')
-rwxr-xr-xscripts/system/irq-affinity.pl4
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 );