]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_kni.c
ethdev: add represented port action to flow API
[dpdk.git] / app / test / test_kni.c
index 347000579040c549b95f5329b2d8c95573ac9f43..96733554b6c493bad182703f50a7428f974d0450 100644 (file)
@@ -563,7 +563,11 @@ test_kni(void)
        closedir(dir);
 
        /* Initialize KNI subsystem */
-       rte_kni_init(KNI_TEST_MAX_PORTS);
+       ret = rte_kni_init(KNI_TEST_MAX_PORTS);
+       if (ret < 0) {
+               printf("fail to initialize KNI subsystem\n");
+               return -1;
+       }
 
        if (test_kni_allocate_lcores() < 0) {
                printf("No enough lcores for kni processing\n");