From: Jon DeVree Date: Sat, 7 Apr 2018 17:29:52 +0000 (-0400) Subject: net/vmxnet3: fill imissed stat X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=91f6191999cda8726ad7c3db1ff8731423236b46;p=dpdk.git net/vmxnet3: fill imissed stat This counter comes from a "hardware" register of the vmxnet3 device and seems to behave like the MPC (Missed Packet Count) register of the Intel NICs. So I think this data belongs in the imissed field rather than the rx_nombuf field. Signed-off-by: Jon DeVree Acked-by: Yong Wang --- diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 011e262e55..456852108b 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -1016,7 +1016,7 @@ vmxnet3_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->q_errors[i] = rxStats.pktsRxError; stats->ierrors += rxStats.pktsRxError; - stats->rx_nombuf += rxStats.pktsRxOutOfBuf; + stats->imissed += rxStats.pktsRxOutOfBuf; } return 0;