From: Ajit Khaparde Date: Fri, 21 Jul 2017 03:22:30 +0000 (-0500) Subject: net/bnxt: reset VF stats during initialization X-Git-Tag: spdx-start~2313 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b5b6ff619078babd5bb7ac05fef31bfafb3ffd7a;p=dpdk.git net/bnxt: reset VF stats during initialization This patch resets the VF stats during initialization Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF") Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 7cd4978553..231f06b1bb 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -2306,6 +2306,7 @@ int bnxt_hwrm_allocate_vfs(struct bnxt *bp, int num_vfs) reserve_resources_from_vf(bp, &req, i); bp->pf.active_vfs++; + bnxt_hwrm_func_clr_stats(bp, bp->pf.vf_info[i].fid); } /*