bnxt_en: Add EEE setup code.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 5 Apr 2016 18:08:58 +0000 (14:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 20:20:46 +0000 (16:20 -0400)
commit939f7f0ca442187db2a4ec7a40979c711b0c939e
tree8cba1e2a630789a9122eec86460644d62d482bdf
parent170ce01301a2a1a87808765531d938fa0b023641
bnxt_en: Add EEE setup code.

1. Add bnxt_hwrm_set_eee() function to setup EEE firmware parameters based
on the bp->eee settings.
2. The new function bnxt_eee_config_ok() will check if EEE parameters need
to be modified due to autoneg changes.
3. bnxt_hwrm_set_link() has added a new parameter to update EEE.  If the
parameter is set, it will call bnxt_hwrm_set_eee().

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
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h