bnxt_en: Improve ethtool .get_settings().
authorMichael Chan <michael.chan@broadcom.com>
Tue, 5 Apr 2016 18:09:03 +0000 (14:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 20:20:48 +0000 (16:20 -0400)
commit29c262fed4067c52977ba279cf71520f9991a050
treed2a65b1f78704804f7d2a8bd79feff22432004ed
parent9d9cee08fc9f5c4df84ef314158fd19c013bcec6
bnxt_en: Improve ethtool .get_settings().

If autoneg is off, we should always report the speed and duplex settings
even if it is link down so the user knows the current settings.  The
unknown speed and duplex should only be used for autoneg when link is
down.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c