diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2012-09-18 20:20:19 -0700 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-10-05 23:38:38 +0100 |
commit | 70a58ffc7a51759ec6a065d7ea4f7d0567e9856a (patch) | |
tree | 6940cef5ad2be0e8f27e2930b124a94fa669ee4f | |
parent | 517f88b51e1814c4904ecbad82c18e1b68a99f40 (diff) | |
download | ethtool-70a58ffc7a51759ec6a065d7ea4f7d0567e9856a.tar.gz |
ethtool: --set-eee sends ETHTOOL_SEEE ioctl even if nothing changed
When setting EEE parameters with the --set-eee command line option,
ethtool will send the ETHTOOL_SEEE ioctl down to the driver even if
none of the provided parameters are a change from current settings.
Simply ignore it when that happens as done with other ethtool commands.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r-- | ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3645,7 +3645,7 @@ static int do_geee(struct cmd_context *ctx) static int do_seee(struct cmd_context *ctx) { int adv_c = -1, lpi_c = -1, lpi_time_c = -1, eee_c = -1; - int change = -1, change2 = -1; + int change = -1, change2 = 0; struct ethtool_eee eeecmd; struct cmdline_info cmdline_eee[] = { { "advertise", CMDL_U32, &adv_c, &eeecmd.advertised }, |