27 Dec, 2013

1 commit


02 Mar, 2012

1 commit


30 Apr, 2011

2 commits

  • This updates the network drivers so that they don't access the
    ethtool_cmd::speed field directly, but use ethtool_cmd_speed()
    instead.

    For most of the drivers, these changes are purely cosmetic and don't
    fix any problem, such as for those 1GbE/10GbE drivers that indirectly
    call their own ethtool get_settings()/mii_ethtool_gset(). The changes
    are meant to enforce code consistency and provide robustness with
    future larger throughputs, at the expense of a few CPU cycles for each
    ethtool operation.

    All drivers compiled with make allyesconfig ion x86_64 have been
    updated.

    Tested: make allyesconfig on x86_64 + e1000e/bnx2x work
    Signed-off-by: David Decotigny
    Signed-off-by: David S. Miller

    David Decotigny
     
  • This makes sure that when a driver calls the ethtool's
    get/set_settings() callback of another driver, the data passed to it
    is clean. This guarantees that speed_hi will be zeroed correctly if
    the called callback doesn't explicitely set it: we are sure we don't
    get a corrupted speed from the underlying driver. We also take care of
    setting the cmd field appropriately (ETHTOOL_GSET/SSET).

    This applies to dev_ethtool_get_settings(), which now makes sure it
    sets up that ethtool command parameter correctly before passing it to
    drivers. This also means that whoever calls dev_ethtool_get_settings()
    does not have to clean the ethtool command parameter. This function
    also becomes an exported symbol instead of an inline.

    All drivers visible to make allyesconfig under x86_64 have been
    updated.

    Signed-off-by: David Decotigny
    Signed-off-by: David S. Miller

    David Decotigny
     

13 Oct, 2009

2 commits

  • In mdio45_ethtool_gset_npage() and mdio45_ethtool_gset(), check MDIO
    pause frame advertising flags and set the corresponding ethtool flags.

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Ben Hutchings
     
  • Currently, if pause autoneg is off we do not set either pause
    advertising flag. If autonegotiation of speed and duplex settings is
    enabled, there is no way for the link partner to distinguish this from
    our refusing to use pause frames.

    We should instead set the advertising flags according to the forced
    mode so that the link partner can follow our lead. This is consistent
    with the behaviour of other drivers.

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Ben Hutchings
     

04 Sep, 2009

1 commit


27 Aug, 2009

1 commit


26 Jun, 2009

1 commit

  • Add missing GPL flag and description.

    mdio: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint

    Signed-off-by: Nicolas Reinecke das-labor.org>
    Acked-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Nicolas Reinecke
     

11 Jun, 2009

1 commit


30 Apr, 2009

4 commits