ring: guarantee load/load order in enqueue and dequeue
[dpdk.git] / drivers / net / dpaa / dpaa_ethdev.c
index 8dad97e..cf5a2ec 100644 (file)
@@ -41,7 +41,6 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 
-#include <rte_config.h>
 #include <rte_byteorder.h>
 #include <rte_common.h>
 #include <rte_interrupts.h>
@@ -51,7 +50,6 @@
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
 #include <rte_memory.h>
-#include <rte_memzone.h>
 #include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_alarm.h>
@@ -283,7 +281,7 @@ static int dpaa_eth_link_update(struct rte_eth_dev *dev,
        return 0;
 }
 
-static void dpaa_eth_stats_get(struct rte_eth_dev *dev,
+static int dpaa_eth_stats_get(struct rte_eth_dev *dev,
                               struct rte_eth_stats *stats)
 {
        struct dpaa_if *dpaa_intf = dev->data->dev_private;
@@ -291,6 +289,7 @@ static void dpaa_eth_stats_get(struct rte_eth_dev *dev,
        PMD_INIT_FUNC_TRACE();
 
        fman_if_stats_get(dpaa_intf->fif, stats);
+       return 0;
 }
 
 static void dpaa_eth_stats_reset(struct rte_eth_dev *dev)
@@ -921,7 +920,7 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev)
        /* reset bpool list, initialize bpool dynamically */
        list_for_each_entry_safe(bp, tmp_bp, &cfg->fman_if->bpool_list, node) {
                list_del(&bp->node);
-               rte_free(bp);
+               free(bp);
        }
 
        /* Populate ethdev structure */