Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed(autorps): error messages more quiet #206

Merged
merged 1 commit into from
Feb 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed(autorps): error message more quiet
  • Loading branch information
strizhechenko committed Feb 19, 2018
commit cc5a751eddbd5f493306b151b5c64cbd23edeefd
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