19 Jun, 2019
1 commit
-
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundationthis program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Enrico Weigelt
Reviewed-by: Kate Stewart
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman
03 Jan, 2017
1 commit
-
There is a function in mdio for the old ethtool api gset.
We add a new function mdio45_ethtool_ksettings_get for the
new ethtool api glinksettings.Signed-off-by: Philippe Reynes
Signed-off-by: David S. Miller
27 Dec, 2013
1 commit
-
Use it or lose it.
Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller
02 Mar, 2012
1 commit
-
Add comments for ethtool_cmd::phy_address and
ethtool_cmd::mdio_support, and definitions of the flags currently
used in mdio_support.In the mdio library, assert that its own flags continue to match those
in the ethtool interface.In the mii library, use the ethtool flag definition and stop
including .Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller
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 -
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
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 -
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
04 Sep, 2009
1 commit
-
dev_ioctl() already checks capable(CAP_NET_ADMIN) before calling the
driver's implementation of MDIO ioctls.Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller
27 Aug, 2009
1 commit
-
Some PHYs will report that the link is up even though there is a fault
condition. Therefore, check the fault flag too. We must also read
STAT2 to reset this flag.Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller
26 Jun, 2009
1 commit
-
Add missing GPL flag and description.
mdio: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taintSigned-off-by: Nicolas Reinecke das-labor.org>
Acked-by: Ben Hutchings
Signed-off-by: David S. Miller
11 Jun, 2009
1 commit
-
This is available in a standard MDIO register in 10GBASE-T PHYs.
Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller
30 Apr, 2009
4 commits
-
Compile-tested only.
Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller -
Add mdio_support and lp_advertising fields to ethtool_cmd. Set these
in mdio45_ethtool_gset{,_npage}().Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller -
This implements the ETHTOOL_SPAUSEPARAM operation for MDIO (clause 45)
PHYs with auto-negotiation MMDs.Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller -
These roughly mirror many of the MII library functions and are based
on code from the sfc driver.Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller