提交 14f806a0 编写于 作者: Y Yuval Mintz 提交者: David S. Miller

bnx2x: VF clean statistics

During statistics initialization of a VF we need to clean its statistics.
Signed-off-by: NYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: NAriel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ea36475a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册