numam-dpdk/drivers/net/vmxnet3
Yogev Chaimovich 30f77abecd net/vmxnet3: support stats reset
'stats_reset()' callback was missing because the device backend doesn't
support it.

This commit adds a workaround to this and implements the callback by
taking a snapshot of the stats (SNAPSHOT) each time 'stats_reset()'
is called.  When getting stats with 'stats_get()', hw stats which
always increase reduce SNAPSHOT stats.
That's how we get the "real" stats since the last 'stats_reset()'.

Signed-off-by: Yogev Chaimovich <yogev@cgstowernetworks.com>
Acked-by: Yong Wang <yongwang@vmware.com>
2018-09-28 01:41:02 +02:00
..
base
Makefile
meson.build net/vmxnet3: add in meson build 2018-09-18 22:53:35 +02:00
rte_pmd_vmxnet3_version.map
vmxnet3_ethdev.c net/vmxnet3: support stats reset 2018-09-28 01:41:02 +02:00
vmxnet3_ethdev.h net/vmxnet3: support stats reset 2018-09-28 01:41:02 +02:00
vmxnet3_logs.h
vmxnet3_ring.h
vmxnet3_rxtx.c