Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
perftune.py: fix regression introduced in df5f74a
Browse files Browse the repository at this point in the history
While fixing "IndexError when NIC uses less IRQs than requested" I introduced
a regression by changing the type of 'all_irqs' from 'list' to 'set'.

This raises a "TypeError: 'set' object does not support indexing" exception
on NetPerfTuner.__setup_one_hw_iface method when trying to tune the network.

Signed-off-by: Alexys Jacob <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
ultrabug authored and avikivity committed May 21, 2017
1 parent 0c34922 commit cb00355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/perftune.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def __learn_irqs_one(self, iface):
if len(irqs) > 0:
return irqs
else:
return all_irqs
return list(all_irqs)

def __learn_irqs(self):
"""
Expand Down

0 comments on commit cb00355

Please sign in to comment.