Commit b16a002e authored by Committed by David S. MillerBrowse files
e1000e: Incorrect MII Link beat reporting.
The driver was only updating MII stats when an LSC up was detected and the interface had not already been reported up to netdev. This meant MII stats returned in response to an SIOCGMIIREG ioctl would always show a link up if it had ever been up. This was misleading the networking daemon guessnet, which uses this ioctl, into making improper network port selections. This fix adds a call to e1000_phy_read_status() to actively read the mii stats before responding to the SIOCGMIIREG ioctl. Signed-off-by: Bruce Allan <firstname.lastname@example.org> Signed-off-by: Jeff Kirsher <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>