Commit 8f7bc287 authored by Manfred Spraul's avatar Manfred Spraul Committed by Jeff Garzik

[PATCH] forcedeth: add ethtool get/set_settings support

The patch adds ethtool get_ and set_settings support to the forcedeth nic
driver. This allows to force a certain link speed with ethtool -s.

Supported link speeds: 10 HD&FD, 100 HD&FD, 1000 FD

1000 HD is not supported (probably a hardware restriction), 1000 FD is
only supported with autonegotiation enabled.

Changelog:
- Code reorganization: move ethtool functions further down in forcedeth.c
  (no code changes within the existing ethtool functions)
- add support for setting the link setting bits in the nic with
autodetection in the PHY disabled (i.e. use a netdev_priv() variable
instead of querying the PHY)
- implement get_settings and set_settings ethtool functions.
Signed-Off-By: default avatarManfred Spraul <manfred@colorfullife.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent eb25b5b2
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment