net: Move a comment
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
parent
ab598cd6ef
commit
313355ad32
1 changed files with 1 additions and 1 deletions
|
|
@ -319,9 +319,9 @@ class NetTuningPlugin(base.Plugin):
|
|||
return None
|
||||
if not sim:
|
||||
log.debug("setting %s: %s" % (context, str(d)))
|
||||
# ignore ethtool return code 80, it means parameter is already set
|
||||
context2opt = { "coalesce": "-C", "features": "-K", "pause": "-A", "ring": "-G" }
|
||||
opt = context2opt[context]
|
||||
# ignore ethtool return code 80, it means parameter is already set
|
||||
self._cmd.execute(["ethtool", opt, device] + self._cmd.dict2list(d), no_errors = [80])
|
||||
return d
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue