From: Hao Chen Date: Sat, 21 Dec 2019 10:32:50 +0000 (+0800) Subject: net/hns3: remove redundant stats reset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=074aa6b679fb948bc78449e4ee54b1d4e76dcb23;p=dpdk.git net/hns3: remove redundant stats reset This patch removes the redundant statement calling hns3_stats_reset() to clear statistical information explicitly in the initialization of VF device, because hardware has been reset by FLR in the initialization and the initial hardware and software statistics values are 0. Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index b5f3e9a867..92ed32631a 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -1167,7 +1167,6 @@ hns3vf_init_vf(struct rte_eth_dev *eth_dev) hns3_set_default_rss_args(hw); - (void)hns3_stats_reset(eth_dev); return 0; err_get_config: