On Sun, 3 Dec 2000, Chris Wedgwood wrote:
> > Russell King <[EMAIL PROTECTED]> �crit :
> > [...]
> > > We already have a standard interface for this, but many drivers do not
> > > support it. Its called "ifconfig eth0 media xxx":
> Actually, I starteed work on adding this to the 3c59x code last
> night; I am now a little dispondent though as it wasn't as simple as
> I first thought it might be.
Does 'ifconfig eth0 media xxx' wind up calling dev->set_config?
If yes, my guess is correct, I think the proper solution is to:
* create a generic set_config, which does nothing but convert the calls'
semantics into ethtool semantics, and
* add ethtool support to the specific driver
And you might even go so far as to create a generic MII implementation
of ethtool support, so that existing drivers can simply plug in their
mdio_{read,write} functions to automatically get full ethtool support.
(disclaimer: this is a spur-of-the-moment thought, creating a generic
MII module for ethtool support may not be feasible)
drivers/net/sis900.c implements set_config, if you want an example..
Finally, if you want to just use ethtool directly, grab the SRPM and
install it on your system.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
- Re: [RFC] Configuring synchronous interfaces in Linux Francois romieu
- Re: [RFC] Configuring synchronous interfaces in Lin... Francois Romieu
- Re: [RFC] Configuring synchronous interfaces in Lin... Francois Desloges
- Re: [RFC] Configuring synchronous interfaces in Linux Christoph Hellwig
- Re: [RFC] Configuring synchronous interfaces in Lin... Xavier Bestel
- Re: [RFC] Configuring synchronous interfaces in Linux Russell King
- Re: [RFC] Configuring synchronous interfaces in Lin... Francois Romieu
- Re: [RFC] Configuring synchronous interfaces in... Donald Becker
- Re: [RFC] Configuring synchronous interfaces in Lin... Philip Blundell
- Re: [RFC] Configuring synchronous interfaces in Linux Bogdan Costescu
- Re: [RFC] Configuring synchronous interfaces in Linux Jeff Garzik
- Re: [RFC] Configuring synchronous interfaces in Lin... Russell King
- Re: [RFC] Configuring synchronous interfaces in Lin... Philip Blundell
- Re: [RFC] Configuring synchronous interfaces in... Philip Blundell
- Re: [RFC] Configuring synchronous interface... Russell King
- Re: [RFC] Configuring synchronous interfaces in Lin... Keith Owens
- Re: [RFC] Configuring synchronous interfaces in... Jeff Garzik
- Re: [RFC] Configuring synchronous interface... Keith Owens
- Re: [RFC] Configuring synchronous inter... Keith Owens
- Re: [RFC] Configuring synchronous interfaces in Linux Donald Becker

