]> git.neil.brown.name Git - history.git/commit
[BRIDGE]: Use ethtool to get port speed.
authorStephen Hemminger <shemminger@osdl.org>
Fri, 16 Apr 2004 07:14:41 +0000 (00:14 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Fri, 16 Apr 2004 07:14:41 +0000 (00:14 -0700)
commit3de1c3716726b8dbb8c2edd28de57a6aba73bf10
treeca18eab89635ce6174a37bc1b0604d4e5f9937e4
parentef443d0f02bb66d8ed4976e459ddd11b8b1407b7
[BRIDGE]: Use ethtool to get port speed.

The bridge code needs to keep track of a cost estimate for each
port in the bridge.  Instead of a hack based on device name, try
and use ethtool to get port speed from device.  This has been tested
on e100 (uses ethtool_ops) and e1000 (does ethtool the hard way)
and dummy (no ethtool).

Need to export dev_ethtool() to allow bridge module to get to
it easily.

Code takes care to maintain same locking and semantics as if ioctl
was being done from application.
net/bridge/br_if.c
net/bridge/br_ioctl.c
net/core/ethtool.c