From: Pravin Shelar Date: Mon, 31 Mar 2014 19:44:06 +0000 (-0700) Subject: ofpbuf: Add private pointer for dpdk X-Git-Tag: sliver-openvswitch-2.2.90-1~5^2~68 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6e2f6e708fb9bdb5443f8854016ea4f6fa73b355;p=sliver-openvswitch.git ofpbuf: Add private pointer for dpdk netdev-dpdk uses this pointer to store dpdk mbuf. This patch fixes compilation error in dpdk. Signed-off-by: Pravin B Shelar Acked-by: Jarno Rajahalme --- diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index 8d1cb111e..9beceddd6 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -22,6 +22,7 @@ #include "list.h" #include "packets.h" #include "util.h" +#include "netdev-dpdk.h" #ifdef __cplusplus extern "C" { @@ -52,6 +53,9 @@ struct ofpbuf { UINT16_MAX. */ enum ofpbuf_source source; /* Source of memory allocated as 'base'. */ struct list list_node; /* Private list element for use by owner. */ +#ifdef DPDK_NETDEV + void *private_p; /* private pointer for use by dpdk */ +#endif }; void * ofpbuf_resize_l2(struct ofpbuf *, int increment);