event/sw: fix xstats reset value
authorGage Eads <gage.eads@intel.com>
Tue, 27 Aug 2019 21:34:59 +0000 (16:34 -0500)
committerJerin Jacob <jerinj@marvell.com>
Sat, 5 Oct 2019 13:39:31 +0000 (15:39 +0200)
commitd02c470c87976def34bae0307736ecb9c8cac9d8
tree0eb96683c9128ad0b391ff572c504b97a3012eec
parentaa026482baf9ce6642c6bcaa1d6d8bd702ca707e
event/sw: fix xstats reset value

The sw PMD implements xstats reset by having the xstat get operations
return a value to the statistic's value at the last reset. The value at the
last reset is maintained in the per-xstat reset_value field, but the PMD
was setting reset_value = current - reset_value instead of reset_value =
current.

Fixes: c1ad03df7ad5 ("event/sw: support xstats")
Cc: stable@dpdk.org
Signed-off-by: Gage Eads <gage.eads@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev_xstats.c