summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/irq-affinity.pl10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/system/irq-affinity.pl b/scripts/system/irq-affinity.pl
index e334f4aa..99d37bbc 100755
--- a/scripts/system/irq-affinity.pl
+++ b/scripts/system/irq-affinity.pl
@@ -289,16 +289,24 @@ sub affinity_auto {
my $ntx = grep { /$ifname-tx-/ } @irqnames;
die "$ifname: rx queues $nq != tx queues $ntx"
unless ( $nq == $ntx );
-
+
return assign_multiqueue( $ifname, $nq, $irqmap,
[ '%s-rx-%d', '%s-tx-%d' ] );
}
+ # intel convention
$nq = grep { /$ifname-TxRx-/ } @irqnames;
if ( $nq > 0 ) {
return assign_multiqueue( $ifname, $nq, $irqmap, ['%s-TxRx-%d'] );
}
+ # vmxnet3 convention
+ $nq = grep { /$ifname-rxtx-/ } @irqnames;
+ if ( $nq > 0 ) {
+ return assign_multiqueue( $ifname, $nq, $irqmap, ['%s-rxtx-%d'] );
+ }
+
+ # old naming
$nq = grep { /$ifname-\d$/ } @irqnames;
if ( $nq > 0 ) {
return assign_multiqueue( $ifname, $nq, $irqmap, ['%s-%d'] );