summaryrefslogtreecommitdiff
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorJon DeVree <nuxi@vault24.org>2018-04-07 13:29:52 -0400
committerFerruh Yigit <ferruh.yigit@intel.com>2018-04-14 01:17:23 +0200
commit91f6191999cda8726ad7c3db1ff8731423236b46 (patch)
treeaad4498ef1d2cb4e99c56929be286b6451aedd12 /drivers/net/vmxnet3
parentdf16bcc9d2643b3b1a69c616be88ce410142ec7d (diff)
downloaddpdk-next-eventdev-91f6191999cda8726ad7c3db1ff8731423236b46.zip
dpdk-next-eventdev-91f6191999cda8726ad7c3db1ff8731423236b46.tar.gz
dpdk-next-eventdev-91f6191999cda8726ad7c3db1ff8731423236b46.tar.xz
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 <nuxi@vault24.org> Acked-by: Yong Wang <yongwang@vmware.com>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
index 011e262..4568521 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;