]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/main.c
examples/ip_pipeline: add cryptodev
[dpdk.git] / examples / ip_pipeline / main.c
index a69faceef7b8a688a9c84ebb9e41abed5ce7d9e5..97d1e91c2b4b704861f0ceeb751d1e5b9b9d486d 100644 (file)
@@ -14,6 +14,7 @@
 #include "cli.h"
 #include "conn.h"
 #include "kni.h"
+#include "cryptodev.h"
 #include "link.h"
 #include "mempool.h"
 #include "pipeline.h"
@@ -210,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) {