Enable DPDK KNI code based on DPDK config
[vpp.git] / vnet / vnet / devices / dpdk / dpdk.h
index 3e287a9..48c1772 100644 (file)
@@ -45,7 +45,9 @@
 #include <rte_ring.h>
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
+#ifdef RTE_LIBRTE_KNI
 #include <rte_kni.h>
+#endif
 #include <rte_virtio_net.h>
 #include <rte_pci_dev_ids.h>
 #include <rte_version.h>