net/hns3: fix return value when clearing statistics
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Wed, 29 Apr 2020 11:13:28 +0000 (19:13 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commit68ca93e31cff53d7726d5f7e2b71c5c1cb1743e6
tree7d949a2bcd032bf38e0a6d9c2acc723f4ba086b7
parent2de74dcfbd150fde59c8e0a20ae21e22ab27605e
net/hns3: fix return value when clearing statistics

Since the return value of the '.stats_reset' and '.xstats_reset'
callback function is int, when failing to issue command to firmware to
execute clear statistics, the relevant callback function should return
non-zero value.

Fixes: 8839c5e202f3 ("net/hns3: support device stats")
Cc: stable@dpdk.org
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_stats.c