projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff80ee0
)
bnx2x: perform statistics "action" before state transition.
author
Vladislav Zolotarov
<
[email protected]
>
Mon, 28 Feb 2011 03:37:10 +0000
(
03:37
+0000)
committer
David S. Miller
<
[email protected]
>
Mon, 28 Feb 2011 21:14:48 +0000
(13:14 -0800)
Signed-off-by: Dmitry Kravkov <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_stats.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_stats.c
b/drivers/net/bnx2x/bnx2x_stats.c
index bda60d590fa88aeb29bf7f15c0c649548905544f..3445ded6674f6482d6a6de7c8ad76c59d4a71ae1 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_stats.c
+++ b/
drivers/net/bnx2x/bnx2x_stats.c
@@
-1239,14
+1239,14
@@
void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event)
if (unlikely(bp->panic))
return;
+ bnx2x_stats_stm[bp->stats_state][event].action(bp);
+
/* Protect a state change flow */
spin_lock_bh(&bp->stats_lock);
state = bp->stats_state;
bp->stats_state = bnx2x_stats_stm[state][event].next_state;
spin_unlock_bh(&bp->stats_lock);
- bnx2x_stats_stm[state][event].action(bp);
-
if ((event != STATS_EVENT_UPDATE) || netif_msg_timer(bp))
DP(BNX2X_MSG_STATS, "state %d -> event %d -> state %d\n",
state, event, bp->stats_state);