Re: [RFC] ethtool semantics

From: Marc Herbert (marc.herbert_at_free.fr)
Date: 06/08/04

  • Next message: viro_at_parcelfarce.linux.theplanet.co.uk: "Re: Finding user/kernel pointer bugs"
    Date:	Tue, 8 Jun 2004 01:43:26 +0200 (CEST)
    To: netdev@oss.sgi.com
    
    

    On Mon, 7 Jun 2004, David S. Miller wrote:

    > On Mon, 7 Jun 2004 23:28:04 +0200
    > Roger Luethi <rl@hellgate.ch> wrote:
    >
    > > What is the correct response if a user passes ethtool speed or duplex
    > > arguments while autoneg is on? Some possible answers are:
    > >
    > > a) Yell at the user for doing something stupid.
    > >
    > > b) Fail silently (i.e. ignore command).
    > >
    > > c) Change advertised value accordingly and initiate new negotiation.
    > >
    > > d) Consider "autoneg off" implied, force media accordingly.
    > >
    > > The ethtool(8) man page I'm looking at doesn't address that question. The
    > > actual behavior I've seen is b) which is by far my least preferred
    > > solution.

    > speed and duplex fields should be silently ignored in this case

    I find the c) feature very convenient. For instance it allows reliably
    downgrading a link connected to a switch without having to fiddle with
    the configuration of the switch, something which is usually (pick your
    favourites) non-standard, painful, not authorized, not implemented,
    buggy,...

    Command line parameters of the bcm5700 driver do implement c) (among
    other nifties). Documented in its man page. Command line parameters of
    e1000 also allow some control over the autonegociation process, even
    if not using c) but a different (and less user-friendly) syntax. See
    Documentation/--/e1000.txt. From David's words, I suspect this feature
    is simply missing from ethtool.

    Finally, silently ignoring user input is not very user-friendly IMHO.
    I would much prefer a) to b).

    I am aware that my preferences are probably in inverse order of the
    amount of work required.

    PS: I read netdev but not linux-kernel
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: viro_at_parcelfarce.linux.theplanet.co.uk: "Re: Finding user/kernel pointer bugs"

    Relevant Pages

    • Re: [PATCH] dynamic wep keys for airo.c
      ... the needed patch to use ... > conservative side I have provided a command line switch to disable the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Problems with my parport (and printer)
      ... >> switched of and I try to print something, the print command just ... > First of all, if you want to do normal printing, you shouldn't switch on ... when I send data to the printer and it is not connected, the command ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Special formatting of toc entries
      ... \chapterprecis command for this purpose. ... But I am afraid I'll have to switch over to ... memoir class to use this feature and I already have a whole lot of ...
      (comp.text.tex)
    • Re: BDS and FreePascal compatibility question
      ... Global (command line) options allow to switch to the appropriate directories, ... This feature cannot be emulated by the currently used $IFDEFs in the CLX, because these decisions are hard coded in the units, whereas directories can be added at any time, without affecting the general code. ... But see - the units have to be prepared for including specialized code, and the specialized code must be implemented *and* used for all reasonable combinations of languages, platforms and machines. ...
      (borland.public.delphi.non-technical)
    • Re: C2960 config - What do the commands do
      ... To enable visible sequence numbering of system logging messages, use the service sequence-numbers command in global configuration mode. ... Configure the system to automatically switch to summer time. ... This sybnet has the same network address what main network (the subnetted one) but longer subnet mask ... For chassis with 64 MAC addresses, STP uses the extended system ID plus a MAC address to make the bridge ID unique for each VLAN. ...
      (comp.dcom.sys.cisco)