examples/ip_pipeline: add link object
[dpdk.git] / examples / ip_pipeline / main.c
index 60936f4..edfb523 100644 (file)
@@ -12,6 +12,8 @@
 
 #include "cli.h"
 #include "conn.h"
+#include "link.h"
+#include "mempool.h"
 
 static const char usage[] =
        "%s EAL_ARGS -- [-h HOST] [-p PORT] [-s SCRIPT]\n";
@@ -159,6 +161,20 @@ main(int argc, char **argv)
                return status;
        };
 
+       /* Mempool */
+       status = mempool_init();
+       if (status) {
+               printf("Error: Mempool initialization failed (%d)\n", status);
+               return status;
+       }
+
+       /* Link */
+       status = link_init();
+       if (status) {
+               printf("Error: Link initialization failed (%d)\n", status);
+               return status;
+       }
+
        /* Script */
        if (app.script_name)
                cli_script_process(app.script_name,