diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-10-05 23:23:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:10:35 -0400 |
commit | 523224a3b3cd407ce4e6731a087194e13a90db18 (patch) | |
tree | bb0fda289682e4259c401b8a5763ba4cc4d41659 /drivers/net/bnx2x/bnx2x_stats.c | |
parent | 0c5b77152e736d23a23eb2546eab323e27a37f52 (diff) |
bnx2x, cnic, bnx2i: use new FW/HSI
This is the new FW HSI blob and the relevant definitions without logic changes.
It also included code adaptation for new HSI. New features are not enabled.
New FW/HSI includes:
- Support for 57712 HW
- Future support for VF (not used)
- Improvements in FW interrupts scheme
- FW FCoE hooks (stubs for future usage)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_stats.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_stats.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c index efa1403ebf82..1256f62f7bff 100644 --- a/drivers/net/bnx2x/bnx2x_stats.c +++ b/drivers/net/bnx2x/bnx2x_stats.c | |||
@@ -153,7 +153,7 @@ static inline long bnx2x_hilo(u32 *hiref) | |||
153 | static void bnx2x_storm_stats_post(struct bnx2x *bp) | 153 | static void bnx2x_storm_stats_post(struct bnx2x *bp) |
154 | { | 154 | { |
155 | if (!bp->stats_pending) { | 155 | if (!bp->stats_pending) { |
156 | struct eth_query_ramrod_data ramrod_data = {0}; | 156 | struct common_query_ramrod_data ramrod_data = {0}; |
157 | int i, rc; | 157 | int i, rc; |
158 | 158 | ||
159 | spin_lock_bh(&bp->stats_lock); | 159 | spin_lock_bh(&bp->stats_lock); |
@@ -163,9 +163,9 @@ static void bnx2x_storm_stats_post(struct bnx2x *bp) | |||
163 | for_each_queue(bp, i) | 163 | for_each_queue(bp, i) |
164 | ramrod_data.ctr_id_vector |= (1 << bp->fp[i].cl_id); | 164 | ramrod_data.ctr_id_vector |= (1 << bp->fp[i].cl_id); |
165 | 165 | ||
166 | rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_ETH_STAT_QUERY, 0, | 166 | rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_COMMON_STAT_QUERY, 0, |
167 | ((u32 *)&ramrod_data)[1], | 167 | ((u32 *)&ramrod_data)[1], |
168 | ((u32 *)&ramrod_data)[0], 0); | 168 | ((u32 *)&ramrod_data)[0], 1); |
169 | if (rc == 0) { | 169 | if (rc == 0) { |
170 | /* stats ramrod has it's own slot on the spq */ | 170 | /* stats ramrod has it's own slot on the spq */ |
171 | bp->spq_left++; | 171 | bp->spq_left++; |
@@ -398,9 +398,9 @@ static void bnx2x_port_stats_init(struct bnx2x *bp) | |||
398 | BIGMAC_REGISTER_RX_STAT_GR64) >> 2; | 398 | BIGMAC_REGISTER_RX_STAT_GR64) >> 2; |
399 | dmae->src_addr_hi = 0; | 399 | dmae->src_addr_hi = 0; |
400 | dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, mac_stats) + | 400 | dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, mac_stats) + |
401 | offsetof(struct bmac_stats, rx_stat_gr64_lo)); | 401 | offsetof(struct bmac1_stats, rx_stat_gr64_lo)); |
402 | dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, mac_stats) + | 402 | dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, mac_stats) + |
403 | offsetof(struct bmac_stats, rx_stat_gr64_lo)); | 403 | offsetof(struct bmac1_stats, rx_stat_gr64_lo)); |
404 | dmae->len = (8 + BIGMAC_REGISTER_RX_STAT_GRIPJ - | 404 | dmae->len = (8 + BIGMAC_REGISTER_RX_STAT_GRIPJ - |
405 | BIGMAC_REGISTER_RX_STAT_GR64) >> 2; | 405 | BIGMAC_REGISTER_RX_STAT_GR64) >> 2; |
406 | dmae->comp_addr_lo = dmae_reg_go_c[loader_idx] >> 2; | 406 | dmae->comp_addr_lo = dmae_reg_go_c[loader_idx] >> 2; |
@@ -571,7 +571,7 @@ static void bnx2x_stats_restart(struct bnx2x *bp) | |||
571 | 571 | ||
572 | static void bnx2x_bmac_stats_update(struct bnx2x *bp) | 572 | static void bnx2x_bmac_stats_update(struct bnx2x *bp) |
573 | { | 573 | { |
574 | struct bmac_stats *new = bnx2x_sp(bp, mac_stats.bmac_stats); | 574 | struct bmac1_stats *new = bnx2x_sp(bp, mac_stats.bmac1_stats); |
575 | struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); | 575 | struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); |
576 | struct bnx2x_eth_stats *estats = &bp->eth_stats; | 576 | struct bnx2x_eth_stats *estats = &bp->eth_stats; |
577 | struct { | 577 | struct { |