diff options
-rwxr-xr-x | scripts/system/irq-affinity.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/system/irq-affinity.pl b/scripts/system/irq-affinity.pl index cf68c0d1..e334f4aa 100755 --- a/scripts/system/irq-affinity.pl +++ b/scripts/system/irq-affinity.pl @@ -280,12 +280,11 @@ sub affinity_auto { # Figure out what style of irq naming is being used my $numirq = grep { /$ifname/ } @irqnames; - if ( $numirq <= 1 ) { + if ( $numirq == 1 ) { my $irq = get_irq($ifname); assign_single( $ifname, $irq) if $irq; - } else { + } elsif ($numirq > 1) { my $nq = grep { /$ifname-rx-/ } @irqnames; - if ( $nq > 0 ) { my $ntx = grep { /$ifname-tx-/ } @irqnames; die "$ifname: rx queues $nq != tx queues $ntx" |