bnx2x: VF clean statistics

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>
This commit is contained in:
Yuval Mintz 2014-08-25 17:48:31 +03:00 committed by David S. Miller
parent ea36475a22
commit 14f806a00a

View file

@ -1629,6 +1629,11 @@ void bnx2x_stats_init(struct bnx2x *bp)
int /*abs*/port = BP_PORT(bp); int /*abs*/port = BP_PORT(bp);
int mb_idx = BP_FW_MB_IDX(bp); int mb_idx = BP_FW_MB_IDX(bp);
if (IS_VF(bp)) {
bnx2x_memset_stats(bp);
return;
}
bp->stats_pending = 0; bp->stats_pending = 0;
bp->executer_idx = 0; bp->executer_idx = 0;
bp->stats_counter = 0; bp->stats_counter = 0;