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: cb7b6606eb
("net/hinic: add RSS stats and promiscuous ops")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
This commit is contained in:
parent
19cc028345
commit
3930d9ceaf
@ -1320,6 +1320,8 @@ hinic_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
|
||||
return err;
|
||||
}
|
||||
|
||||
dev->data->rx_mbuf_alloc_failed = 0;
|
||||
|
||||
/* rx queue stats */
|
||||
q_num = (nic_dev->num_rq < RTE_ETHDEV_QUEUE_STAT_CNTRS) ?
|
||||
nic_dev->num_rq : RTE_ETHDEV_QUEUE_STAT_CNTRS;
|
||||
|
Loading…
Reference in New Issue
Block a user