From 91f6191999cda8726ad7c3db1ff8731423236b46 Mon Sep 17 00:00:00 2001 From: Jon DeVree Date: Sat, 7 Apr 2018 13:29:52 -0400 Subject: [PATCH] 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 --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;