]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/pcap/rte_eth_pcap.c
ethdev: add return value to stats get dev op
[dpdk.git] / drivers / net / pcap / rte_eth_pcap.c
index b51f16cbda1e259cfb16bfeec174b399a1b61694..1b8a74e6e0b1cbfb08849cb36da13b408f311614 100644 (file)
@@ -560,7 +560,7 @@ eth_dev_info(struct rte_eth_dev *dev,
        dev_info->min_rx_bufsize = 0;
 }
 
-static void
+static int
 eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
 {
        unsigned int i;
@@ -592,6 +592,8 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
        stats->opackets = tx_packets_total;
        stats->obytes = tx_bytes_total;
        stats->oerrors = tx_packets_err_total;
+
+       return 0;
 }
 
 static void