ethdev: add represented port action to flow API
[dpdk.git] / app / test / test_kni.c
index f53a53e..9673355 100644 (file)
@@ -562,8 +562,12 @@ test_kni(void)
        }
        closedir(dir);
 
-       /* Initialize KNI subsytem */
-       rte_kni_init(KNI_TEST_MAX_PORTS);
+       /* Initialize KNI subsystem */
+       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");