From: Ben Hutchings Date: Thu, 9 Dec 2010 12:08:35 +0000 (+0000) Subject: ethtool: Report link-down while interface is down X-Git-Tag: v2.6.38-rc1~476^2~253 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e596e6e4d578f2639416e620d367a3af34814a40;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed