ethdev: add return code to stats reset function
authorDavid Harton <dharton@cisco.com>
Wed, 20 Sep 2017 14:11:30 +0000 (10:11 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
commit80d0ff81e8bb1cf9772995fd7fe3d881c27e9fee
tree22b908e209af37c1ad8e80d86f601e0a5093b058
parent2cb43002af29571b2aa2e18c8154a3e23e6e013f
ethdev: add return code to stats reset function

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 <dharton@cisco.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/rel_notes/release_17_11.rst
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h