On Thu, 24 Aug 2006, Michael Chan wrote:
> Jeff Kirsher wrote:
>
> > The old way of setting autonegotiation was using the
> > following command:
> > ethtool -s ethx speed 100 duplex full auto on
> > now the command would be
> > ethtool -s ethx auto on advertise 0x08
> > both commands would result in only advertising 100 FULL.
> >
> > There still needs to be a change made to the man file to reflect the
> > change in the behavior of ethtool, which I have not done. But this
> > patch will allow for greater flexibility in setting autonegotiation
> > speeds.
>
> It is more flexible, but less intuitive. The user now has to
> remember hex values instead of the more intuitive speed and
> duplex. Perhaps we can keep the old method of using speed and
> duplex, while adding the new method of specifying hex values?
I agree. Something like:
ethtool -s ethx auto on advertise mode1+mode2+...+moden
For example:
ethtool -s ethx auto on advertise 100-half+100-full
to set speed 100 either half or full duplex.
Maybe have some abbreviations such as 100-all (same as above) or
all-half (for all supported half duplex) or just all (for all supported
modes), which I suppose is the default.
Just an idea.
-Bill
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html