Skip to content

Commit

Permalink
bnx2x: VF clean statistics
Browse files Browse the repository at this point in the history
During statistics initialization of a VF we need to clean its statistics.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yuval Mintz authored and David S. Miller committed Aug 26, 2014
1 parent ea36475 commit 14f806a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,11 @@ void bnx2x_stats_init(struct bnx2x *bp)
int /*abs*/port = BP_PORT(bp);
int mb_idx = BP_FW_MB_IDX(bp);

if (IS_VF(bp)) {
bnx2x_memset_stats(bp);
return;
}

bp->stats_pending = 0;
bp->executer_idx = 0;
bp->stats_counter = 0;
Expand Down

0 comments on commit 14f806a

Please sign in to comment.