diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2014-08-25 18:48:31 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-26 04:30:22 +0400 |
commit | 14f806a00a183c6a95d74eee29dabbe0c20ba1c4 (patch) | |
tree | df32b245011422f9a9731fdd1aafd3565ca39347 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c | |
parent | ea36475a22ded71633331a0b9b3cddd7f1d6983a (diff) | |
download | linux-14f806a00a183c6a95d74eee29dabbe0c20ba1c4.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c index e1c819396d1a..d1608297c773 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c @@ -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; |