From 313355ad32c9e6c1f63ca53447dbb221302d80ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 12 Sep 2017 15:16:51 +0200 Subject: [PATCH] net: Move a comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ondřej Lysoněk --- tuned/plugins/plugin_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/plugin_net.py b/tuned/plugins/plugin_net.py index bd65aba..f905cf9 100644 --- a/tuned/plugins/plugin_net.py +++ b/tuned/plugins/plugin_net.py @@ -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