]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ethdev/rte_ethdev.h
ethdev: change xstats reset function to return int
[dpdk.git] / lib / librte_ethdev / rte_ethdev.h
index f07a829b29ce7a4923fdbde0be42d3e311660e40..328503d1be10dd6a78ed93cefcec40ed8f974c45 100644 (file)
@@ -2284,8 +2284,13 @@ int rte_eth_xstats_get_id_by_name(uint16_t port_id, const char *xstat_name,
  *
  * @param port_id
  *   The port identifier of the Ethernet device.
+ * @return
+ *   - (0) if device notified to reset extended stats.
+ *   - (-ENOTSUP) if pmd doesn't support both
+ *     extended stats and basic stats reset.
+ *   - (-ENODEV) if *port_id* invalid.
  */
-void rte_eth_xstats_reset(uint16_t port_id);
+int rte_eth_xstats_reset(uint16_t port_id);
 
 /**
  *  Set a mapping for the specified transmit queue to the specified per-queue