]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit157eb2a0b53ff182faef6e275e4e2e1d39222a3c
treee557d5f6b7375098adb8e85962d7035a38a36aae
parent2761c6e0c3939f6a808eb626ce60914f545db882
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