examples/eventdev: fix build with gcc 10
[dpdk.git] / examples / ip_pipeline / main.c
index ab8e2b9..97d1e91 100644 (file)
@@ -8,16 +8,19 @@
 #include <unistd.h>
 #include <getopt.h>
 
+#include <rte_launch.h>
 #include <rte_eal.h>
 
 #include "cli.h"
 #include "conn.h"
 #include "kni.h"
+#include "cryptodev.h"
 #include "link.h"
 #include "mempool.h"
 #include "pipeline.h"
 #include "swq.h"
 #include "tap.h"
+#include "thread.h"
 #include "tmgr.h"
 
 static const char usage[] =
@@ -208,6 +211,14 @@ main(int argc, char **argv)
                return status;
        }
 
+       /* Sym Crypto */
+       status = cryptodev_init();
+       if (status) {
+               printf("Error: Cryptodev initialization failed (%d)\n",
+                               status);
+               return status;
+       }
+
        /* Action */
        status = port_in_action_profile_init();
        if (status) {
@@ -229,6 +240,18 @@ main(int argc, char **argv)
                return status;
        }
 
+       /* Thread */
+       status = thread_init();
+       if (status) {
+               printf("Error: Thread initialization failed (%d)\n", status);
+               return status;
+       }
+
+       rte_eal_mp_remote_launch(
+               thread_main,
+               NULL,
+               SKIP_MASTER);
+
        /* Script */
        if (app.script_name)
                cli_script_process(app.script_name,