bnxt_en: Fix and clarify link_info->advertising.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 29 Dec 2016 17:13:34 +0000 (12:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2016 19:37:23 +0000 (14:37 -0500)
commit68515a186cf8a8f97956eaea5829277752399f58
treee557d5f6b7375098adb8e85962d7035a38a36aae
parent9d8bc09766f1a229b2d204c713a1cfc6c7fa1bb1
bnxt_en: Fix and clarify link_info->advertising.

The advertising field is closely related to the auto_link_speeds field.
The former is the user setting while the latter is the firmware setting.
Both should be u16.  We should use the advertising field in
bnxt_get_link_ksettings because the auto_link_speeds field may not
be updated with the latest from the firmware yet.

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