]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_kni.c
net/bnxt: fix packet type
[dpdk.git] / test / test / test_kni.c
index c6867f256d7062e46f0b6b8eecc18fc78dda30f3..e4839cdb74740856086eba876c5a8c078945258c 100644 (file)
 
 #include "test.h"
 
+#ifndef RTE_LIBRTE_KNI
+
+static int
+test_kni(void)
+{
+       printf("KNI not supported, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+#else
+
 #include <rte_string_fns.h>
 #include <rte_mempool.h>
 #include <rte_ethdev.h>
@@ -609,4 +620,6 @@ fail:
        return ret;
 }
 
+#endif
+
 REGISTER_TEST_COMMAND(kni_autotest, test_kni);