diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2012-08-21 01:37:16 -0700 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-09-06 19:10:12 +0100 |
commit | 75e6791c0d2d60705932ea5aa8ced5596cb85da4 (patch) | |
tree | ac01f3ede9f7e1d3001a2c33b2a6c0cf1a891798 /test-cmdline.c | |
parent | 74ffff9036dce839e1f5e6835774126d29bd002f (diff) | |
download | ethtool-75e6791c0d2d60705932ea5aa8ced5596cb85da4.tar.gz |
ethtool: allow setting MDI-X state
A bit ago ethtool added support for reading MDI-X state, this
patch finishes the implementation, adding the complementary write
command.
Add support to ethtool for controlling the MDI-X (crossover)
state of a network port. Most adapters correctly negotiate
MDI-X, but some ill-behaved switches have trouble and end up
picking the wrong MDI setting, which results in complete loss of
link. Usually this error condition can be observed when multiple
ethtool -r ethX are required before link is achieved.
This patch allows the user to override the normal "auto" setting
and force the crossover state to on or off.
The set will fail if the driver doesn't support the get, as
suggested by Ben Hutchings.
setting MDI not supported
In addition the do_gset output was changed slightly to report the
value set by the user (when the driver supports the set)
old:
MDI-X: on
new:
MDI-X: on (auto)
or
MDI-X: on (forced)
usage is ethtool -s eth0 mdix [auto|on|off]
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
CC: Ben Hutchings <bhutchings@solarflare.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>
Diffstat (limited to 'test-cmdline.c')
0 files changed, 0 insertions, 0 deletions