]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/main.c
examples/ip_pipeline: add link object
[dpdk.git] / examples / ip_pipeline / main.c
index 60936f48ed94de17273ad06bc381ffef8a2af033..edfb52327d670ea5064478f863ac1512a863c2c2 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,