]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/enic/enic_ethdev.c
ethdev: make stats and xstats reset callbacks return int
[dpdk.git] / drivers / net / enic / enic_ethdev.c
index 6572815f58ac2045fac6d5c7c25a80e88c5e26bb..8ab1258d00b9fc1b0d608f7caa5df414b832a507 100644 (file)
@@ -474,12 +474,12 @@ static int enicpmd_dev_stats_get(struct rte_eth_dev *eth_dev,
        return enic_dev_stats_get(enic, stats);
 }
 
-static void enicpmd_dev_stats_reset(struct rte_eth_dev *eth_dev)
+static int enicpmd_dev_stats_reset(struct rte_eth_dev *eth_dev)
 {
        struct enic *enic = pmd_priv(eth_dev);
 
        ENICPMD_FUNC_TRACE();
-       enic_dev_stats_clear(enic);
+       return enic_dev_stats_clear(enic);
 }
 
 static uint32_t speed_capa_from_pci_id(struct rte_eth_dev *eth_dev)