[dpdk-dev] [PATCH 01/15] eventdev: remove unneeded dependencies
Van Haaren, Harry
harry.van.haaren at intel.com
Tue Jan 17 10:59:59 CET 2017
> From: Jerin Jacob [mailto:jerin.jacob at caviumnetworks.com]
> > #include <rte_common.h>
> > -#include <rte_pci.h>
> > -#include <rte_mbuf.h>
> > +#include <rte_memory.h>
> > +
> > +struct rte_mbuf; /* we just use mbuf pointers; no need to include rte_mbuf.h */
> This "struct rte_mbuf" reference is not present in dpdk-next-eventdev tree.
> Are you planning to rebase to dpdk-next-eventdev?
The idea was to remove the include of the header file, as we never dereference the mbuf pointer, and hence we shouldn't include a header we don't require.
The struct rte_mbuf here is just a forward declaration for the actual rte_mbuf. This allows the rte_event to contain a struct rte_mbuf* without the compiler complaining that it doesn't understand the type.
The current patches apply to dpdk-next-eventdev HEAD, I don't think I understand what you're asking about rebasing.
More information about the dev