]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/liquidio/lio_ethdev.c
ethdev: add return value to stats get dev op
[dpdk.git] / drivers / net / liquidio / lio_ethdev.c
index a3c8e676271ee511e23936cf2c1098787af9b8ba..5407e391b905003cd31aece43757de3b715d07ea 100644 (file)
@@ -311,7 +311,7 @@ lio_dev_xstats_reset(struct rte_eth_dev *eth_dev)
 }
 
 /* Retrieve the device statistics (# packets in/out, # bytes in/out, etc */
-static void
+static int
 lio_dev_stats_get(struct rte_eth_dev *eth_dev,
                  struct rte_eth_stats *stats)
 {
@@ -359,6 +359,8 @@ lio_dev_stats_get(struct rte_eth_dev *eth_dev,
        stats->ibytes = bytes;
        stats->ipackets = pkts;
        stats->ierrors = drop;
+
+       return 0;
 }
 
 static void