examples/vm_power: fix build with -fno-common
[dpdk.git] / examples / eventdev_pipeline / main.c
index d3ff1bb..2195826 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "pipeline_common.h"
 
+struct fastpath_data *fdata;
+
 struct config_data cdata = {
        .num_packets = (1L << 25), /* do ~32M packets */
        .num_fids = 512,
@@ -299,12 +301,6 @@ signal_handler(int signum)
 
                rte_eal_mp_wait_lcore();
 
-               RTE_ETH_FOREACH_DEV(portid) {
-                       rte_eth_dev_close(portid);
-               }
-
-               rte_event_dev_stop(0);
-               rte_event_dev_close(0);
        }
        if (signum == SIGTSTP)
                rte_event_dev_dump(0, stdout);
@@ -467,5 +463,14 @@ main(int argc, char **argv)
 
        }
 
+       RTE_ETH_FOREACH_DEV(portid) {
+               rte_eth_dev_close(portid);
+       }
+
+       rte_event_dev_stop(0);
+       rte_event_dev_close(0);
+
+       rte_eal_cleanup();
+
        return 0;
 }