[dpdk-dev] [PATCH 2/2] kni: add missing include dependencies

Bruce Richardson bruce.richardson at intel.com
Mon May 25 14:23:54 CEST 2015


The file rte_kni.h depends upon a number of other headers, some of which
are missing from the #include lines. The following #includes are added:
 * rte_memory.h - for the definition of phys_addr_t
 * rte_mempool.h - for the definition of mempool struct and the mempool
   create function.

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 lib/librte_kni/rte_kni.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h
index 98edd72..44240fe 100644
--- a/lib/librte_kni/rte_kni.h
+++ b/lib/librte_kni/rte_kni.h
@@ -47,6 +47,8 @@
  */
 
 #include <rte_pci.h>
+#include <rte_memory.h>
+#include <rte_mempool.h>
 
 #include <exec-env/rte_kni_common.h>
 
-- 
2.1.0



More information about the dev mailing list