summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/ethtool.c
diff options
context:
space:
mode:
authorBen Hutchings2010-12-09 13:08:35 +0100
committerDavid S. Miller2010-12-11 00:55:23 +0100
commite596e6e4d578f2639416e620d367a3af34814a40 (patch)
tree9ffe67f2abe3aebda15ce65ef4ff223f2db7d0f9 /drivers/net/sfc/ethtool.c
parentenic: Use VF mac set by IFLA_VF_MAC in port profile provisioning data (diff)
downloadkernel-qcow2-linux-e596e6e4d578f2639416e620d367a3af34814a40.tar.gz
kernel-qcow2-linux-e596e6e4d578f2639416e620d367a3af34814a40.tar.xz
kernel-qcow2-linux-e596e6e4d578f2639416e620d367a3af34814a40.zip
ethtool: Report link-down while interface is down
While an interface is down, many implementations of ethtool_ops::get_link, including the default, ethtool_op_get_link(), will report the last link state seen while the interface was up. In general the current physical link state is not available if the interface is down. Define ETHTOOL_GLINK to reflect whether the interface *and* any physical port have a working link, and consistently return 0 when the interface is down. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
0 files changed, 0 insertions, 0 deletions