net/hinic: fix Rx nombuf stats
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Mon, 14 Sep 2020 14:31:44 +0000 (22:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:08 +0000 (19:19 +0200)
commit3930d9ceaff9d0c2c86d39d52b007404f42b44b4
treea4d7db1fb8be6ee3e0a24161247444f10ec8bfd3
parent19cc028345f3c2318fad89db34eec276a0af4dd2
net/hinic: fix Rx nombuf stats

rx_mbuf_alloc_failed value is not set to 0 when get stats from driver,
which may cause this counter added every time when call this ops.

Fixes: cb7b6606ebff ("net/hinic: add RSS stats and promiscuous ops")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/hinic_pmd_ethdev.c