forked from OpenDataPlane/odp-dpdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-dpdk: event: use linux-gen event code
Use platform agnostic code from linux-generic. Signed-off-by: Matias Elo <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |