Re: [dpdk-dev] [PATCH v4 1/2] ethdev: add return code to rte_eth_stats_reset()

2017-08-31 Thread Thomas Monjalon
10/08/2017 15:29, David Harton: > Some devices do not support reset of eth stats. An application may > need to know not to clear shadow stats if the device cannot. Yes, thanks for improving this old API. > rte_eth_stats_reset is updated to provide a return code to share > whether the device supp

[dpdk-dev] [PATCH v4 1/2] ethdev: add return code to rte_eth_stats_reset()

2017-08-10 Thread David Harton
Some devices do not support reset of eth stats. An application may need to know not to clear shadow stats if the device cannot. rte_eth_stats_reset is updated to provide a return code to share whether the device supports reset or not. Signed-off-by: David Harton --- v4: * commented return valu