net/hns3: fix Rx/Tx errors stats
authorHuisong Li <lihuisong@huawei.com>
Wed, 6 Jan 2021 03:46:30 +0000 (11:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:13 +0000 (03:30 +0100)
commitec12dc5a554ab4f8dd8a90cab54426dfa685ba80
tree143daef49ec9fb1a6389d6150cd4d984e86f7226
parentdcb33fd7602408dbb7c3bc78537667b3ee33e05c
net/hns3: fix Rx/Tx errors stats

Abnormal errors stats in Rx/Tx datapath are statistics
items in driver, and displayed in xstats. They should
be cleared by the rte_eth_xstats_reset api, instead of
the rte_eth_stats_reset.

Fixes: c4b7d6761d01 ("net/hns3: get Tx abnormal errors in xstats")
Fixes: 521ab3e93361 ("net/hns3: add simple Rx path")
Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_stats.c