Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322807
b: refs/heads/master
c: 217aeb8
h: refs/heads/master
i:
  322805: 6a67543
  322803: 5ec0454
  322799: b885f76
v: v3
  • Loading branch information
Yuval Mintz authored and David S. Miller committed Sep 13, 2012
1 parent 12df1df commit 7dd7a3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bef05406ac0ea6f468e1e25e9934f3011ea9259b
refs/heads/master: 217aeb896a4a9f00006ce4b193c216f739234296
7 changes: 5 additions & 2 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ static void bnx2x_hw_stats_post(struct bnx2x *bp)
if (CHIP_REV_IS_SLOW(bp))
return;

/* Update MCP's statistics if possible */
if (bp->func_stx)
memcpy(bnx2x_sp(bp, func_stats), &bp->func_stats,
sizeof(bp->func_stats));

/* loader */
if (bp->executer_idx) {
int loader_idx = PMF_DMAE_C(bp);
Expand Down Expand Up @@ -128,8 +133,6 @@ static void bnx2x_hw_stats_post(struct bnx2x *bp)

} else if (bp->func_stx) {
*stats_comp = 0;
memcpy(bnx2x_sp(bp, func_stats), &bp->func_stats,
sizeof(bp->func_stats));
bnx2x_post_dmae(bp, dmae, INIT_DMAE_C(bp));
}
}
Expand Down

0 comments on commit 7dd7a3b

Please sign in to comment.