Skip to content

Commit

Permalink
linux-dpdk: event: use linux-gen event code
Browse files Browse the repository at this point in the history
Use platform agnostic code from linux-generic.

Signed-off-by: Matias Elo <[email protected]>
  • Loading branch information
MatiasElo committed Sep 13, 2024
1 parent b9fbf10 commit 9ea221b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 229 deletions.
3 changes: 2 additions & 1 deletion platform/linux-dpdk/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ __LIB__libodp_dpdk_la_SOURCES = \
odp_dma.c \
odp_crypto.c \
odp_errno.c \
odp_event.c \
../linux-generic/odp_event.c \
odp_event_offsets.c \
../linux-generic/odp_event_validation.c \
../linux-generic/odp_hash_crc_gen.c \
odp_init.c \
Expand Down
228 changes: 0 additions & 228 deletions platform/linux-dpdk/odp_event.c

This file was deleted.

23 changes: 23 additions & 0 deletions platform/linux-dpdk/odp_event_offsets.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2015-2018 Linaro Limited
* Copyright (c) 2020-2024 Nokia
*/

#include <odp_event_internal.h>

#include <odp/api/plat/event_inline_types.h>

#include <odp/visibility_begin.h>

/* Fill in event header field offsets for inline functions */
const _odp_event_inline_offset_t
_odp_event_inline_offset ODP_ALIGNED_CACHE = {
.event_type = offsetof(_odp_event_hdr_t, hdr.event_type),
.base_data = offsetof(_odp_event_hdr_t, mb.buf_addr),
.subtype = offsetof(_odp_event_hdr_t, hdr.subtype),
.flow_id = offsetof(_odp_event_hdr_t, hdr.flow_id),
.pool = offsetof(_odp_event_hdr_t, hdr.pool),
.buf_len = offsetof(_odp_event_hdr_t, mb.buf_len)
};

#include <odp/visibility_end.h>

0 comments on commit 9ea221b

Please sign in to comment.