diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-06-06 17:13:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-07 13:18:54 -0700 |
commit | c8c60d88c59cbb48737732ba948663a3efe882aa (patch) | |
tree | 73abd408941b3bea119f8f3323347328a078981f /drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c | |
parent | 80f12eccce775dc6bb93dba9b52529740f929237 (diff) | |
download | op-kernel-dev-c8c60d88c59cbb48737732ba948663a3efe882aa.zip op-kernel-dev-c8c60d88c59cbb48737732ba948663a3efe882aa.tar.gz |
bnx2x: Added EEE support
This patch adds energy efficient energy support (802.3az) to bnx2x
boards with 84833 phys (and sufficiently new BC and external FW).
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c index 1e2785c..0e8bdcb 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c @@ -785,6 +785,10 @@ static int bnx2x_hw_stats_update(struct bnx2x *bp) pstats->host_port_stats_counter++; + if (CHIP_IS_E3(bp)) + estats->eee_tx_lpi += REG_RD(bp, + MISC_REG_CPMU_LP_SM_ENT_CNT_P0); + if (!BP_NOMCP(bp)) { u32 nig_timer_max = SHMEM_RD(bp, port_mb[BP_PORT(bp)].stat_nig_timer); |