bnxt_en: Don't allow autoneg on cards that don't support it.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Jun 2016 06:25:37 +0000 (02:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jun 2016 23:16:14 +0000 (19:16 -0400)
commit93ed8117336485af2cedb069d28f3d4270fb90a1
tree263059504a4c96ab1140ba6e751a3b6b6c143331
parentb24eb6ae7058ca1a42b0532489e5f5796c107d65
bnxt_en: Don't allow autoneg on cards that don't support it.

Some cards do not support autoneg.  The current code does not prevent the
user from enabling autoneg with ethtool on such cards, causing confusion.
Firmware provides the autoneg capability information and we just need to
store it in the support_auto_speeds field in bnxt_link_info struct.
The ethtool set_settings() call will check this field before proceeding
with autoneg.

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