]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_kni.c
test/security: add inline IPsec reassembly cases
[dpdk.git] / app / test / test_kni.c
index 40ab0d5c4ca4b8858a317c0b9a3683aa947c0dd6..622315c8b17874e56d5f3dbde36d3a99666ab8e3 100644 (file)
@@ -2,15 +2,12 @@
  * Copyright(c) 2010-2014 Intel Corporation
  */
 
+#include "test.h"
+
 #include <stdio.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <string.h>
-#include <sys/wait.h>
-#include <dirent.h>
-
-#include "test.h"
-
 #if !defined(RTE_EXEC_ENV_LINUX) || !defined(RTE_LIB_KNI)
 
 static int
@@ -22,6 +19,9 @@ test_kni(void)
 
 #else
 
+#include <sys/wait.h>
+#include <dirent.h>
+
 #include <rte_string_fns.h>
 #include <rte_mempool.h>
 #include <rte_ethdev.h>
@@ -326,7 +326,7 @@ test_kni_register_handler_mp(void)
 
                /* Check with the invalid parameters */
                if (rte_kni_register_handlers(kni, NULL) == 0) {
-                       printf("Unexpectedly register successuflly "
+                       printf("Unexpectedly register successfully "
                                        "with NULL ops pointer\n");
                        exit(-1);
                }
@@ -475,7 +475,7 @@ test_kni_processing(uint16_t port_id, struct rte_mempool *mp)
 
        /**
         * Check multiple processes support on
-        * registerring/unregisterring handlers.
+        * registering/unregistering handlers.
         */
        if (test_kni_register_handler_mp() < 0) {
                printf("fail to check multiple process support\n");