[dpdk-dev] [PATCH] vmxnet3: stats_reset implementation
Ferruh Yigit
ferruh.yigit at intel.com
Fri Sep 21 03:21:41 CEST 2018
On 9/20/2018 7:37 AM, Yogev Chaimovich wrote:
> '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 ch <yogev at cgstowernetworks.com>
Acked-by: Yong Wang <yongwang at vmware.com>
Applied to dpdk-next-net/master, thanks.
More information about the dev
mailing list