bnxt_en: Cleanup and Fix flow control setup logic
authorMichael Chan <mchan@broadcom.com>
Wed, 10 Feb 2016 22:33:47 +0000 (17:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:50:01 +0000 (15:50 -0500)
commit0d8abf020199b0cbc5fb3aa309d36f0ac1b91631
tree4388c77c940a33c74c1950861f4c5adf1eb4a089
parentb763499ee16b74707af0fb26ab0a26bd9719870b
bnxt_en: Cleanup and Fix flow control setup logic

Cleanup bnxt_probe_phy() to cleanly separate 2 code blocks for autoneg
on and off.  Autoneg flow control is possible only if autoneg is enabled.

In bnxt_get_settings(), Pause and Asym_Pause are always supported.
Only the advertisement bits change depending on the ethtool -A setting
in auto mode.

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