Skip to content

Commit

Permalink
Fixed(autorps): error message more quiet (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
strizhechenko committed Feb 19, 2018
1 parent 2b0860a commit d76d712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netutils_linux_tuning/auto_softirq_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def apply(self, decision):
:param decision: queue list to write cpu mask
"""
if len(decision) > 1 and not self.options.force:
raise OSError('Refuse to use RPS on multiqueue NIC. You may use --force flag to apply RPS for all queues')
print('Skipped modifying {0} on {1} because it is multi-queue device (use --force flag to skip this check)'
.format(self.target, self.options.dev))
exit(0)
queue_dir = '/sys/class/net/{0}/queues/'.format(self.options.dev)
for queue in decision:
print_("Using mask '{0}' for {1}-{2}".format(self.options.cpu_mask, self.options.dev, queue))
Expand Down

0 comments on commit d76d712

Please sign in to comment.