aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/odp_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-dpdk/odp_buffer.c')
-rw-r--r--platform/linux-dpdk/odp_buffer.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/platform/linux-dpdk/odp_buffer.c b/platform/linux-dpdk/odp_buffer.c
index 59ea26f77..d3a28b1c5 100644
--- a/platform/linux-dpdk/odp_buffer.c
+++ b/platform/linux-dpdk/odp_buffer.c
@@ -6,14 +6,24 @@
#include <odp/api/buffer.h>
#include <odp_buffer_internal.h>
-#include <odp_buffer_inlines.h>
#include <odp_debug_internal.h>
#include <odp_pool_internal.h>
+#include <odp/api/plat/buffer_inline_types.h>
#include <string.h>
#include <stdio.h>
#include <inttypes.h>
+#include <odp/visibility_begin.h>
+
+/* Fill in buffer header field offsets for inline functions */
+const _odp_buffer_inline_offset_t ODP_ALIGNED_CACHE
+_odp_buffer_inline_offset = {
+ .event_type = offsetof(odp_buffer_hdr_t, event_type)
+};
+
+#include <odp/visibility_end.h>
+
odp_buffer_t odp_buffer_from_event(odp_event_t ev)
{
return (odp_buffer_t)ev;