aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
index 02ac6a771bf..3034f0e3193 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
@@ -1349,12 +1349,14 @@ void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event)
1349 enum bnx2x_stats_state state; 1349 enum bnx2x_stats_state state;
1350 if (unlikely(bp->panic)) 1350 if (unlikely(bp->panic))
1351 return; 1351 return;
1352 bnx2x_stats_stm[bp->stats_state][event].action(bp); 1352
1353 spin_lock_bh(&bp->stats_lock); 1353 spin_lock_bh(&bp->stats_lock);
1354 state = bp->stats_state; 1354 state = bp->stats_state;
1355 bp->stats_state = bnx2x_stats_stm[state][event].next_state; 1355 bp->stats_state = bnx2x_stats_stm[state][event].next_state;
1356 spin_unlock_bh(&bp->stats_lock); 1356 spin_unlock_bh(&bp->stats_lock);
1357 1357
1358 bnx2x_stats_stm[state][event].action(bp);
1359
1358 if ((event != STATS_EVENT_UPDATE) || netif_msg_timer(bp)) 1360 if ((event != STATS_EVENT_UPDATE) || netif_msg_timer(bp))
1359 DP(BNX2X_MSG_STATS, "state %d -> event %d -> state %d\n", 1361 DP(BNX2X_MSG_STATS, "state %d -> event %d -> state %d\n",
1360 state, event, bp->stats_state); 1362 state, event, bp->stats_state);