Re: [PATCH net-next] cxgb4: do not return DUPLEX_UNKNOWN when link is down

2018-07-16 Thread David Miller
From: Ganesh Goudar Date: Fri, 13 Jul 2018 17:56:55 +0530 > We were returning DUPLEX_UNKNOWN in get_link_ksettings() when > the link was down. Unfortunately, this causes a problem when > "ethtool -s autoneg on" is issued for a link which is down because > the ethtool code first reads the

[PATCH net-next] cxgb4: do not return DUPLEX_UNKNOWN when link is down

2018-07-13 Thread Ganesh Goudar
We were returning DUPLEX_UNKNOWN in get_link_ksettings() when the link was down. Unfortunately, this causes a problem when "ethtool -s autoneg on" is issued for a link which is down because the ethtool code first reads the settings and then reapplies them with only the changes provided on the