diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-11-01 10:20:16 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-11-23 10:41:07 +0200 |
commit | e6ac302e994fae96ccd8f085a139e8643849214b (patch) | |
tree | 68f6dc3470c306c248da1e1916bcfd5277ded5c3 /platform/linux-generic/include/odp_packet_internal.h | |
parent | 1ad2f380e01040732e736d0792cbc3ad6599b892 (diff) |
linux-gen: buffer: use common event header
Use common _odp_event_hdr_t in odp_buffer_hdr_t. Cache line alignment
constraint has been moved to odp_buffer_hdr_t.
The implementation internal scheduler and queue interfaces have been
modified to use event headers instead of buffer headers.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_packet_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_packet_internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index 89cbd3aa8..7c9b7735e 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -170,14 +170,14 @@ static inline odp_packet_t packet_handle(odp_packet_hdr_t *pkt_hdr) return (odp_packet_t)pkt_hdr; } -static inline odp_buffer_hdr_t *packet_to_buf_hdr(odp_packet_t pkt) +static inline _odp_event_hdr_t *packet_to_event_hdr(odp_packet_t pkt) { - return (odp_buffer_hdr_t *)(uintptr_t)&packet_hdr(pkt)->event_hdr; + return (_odp_event_hdr_t *)(uintptr_t)&packet_hdr(pkt)->event_hdr; } -static inline odp_packet_t packet_from_buf_hdr(odp_buffer_hdr_t *buf_hdr) +static inline odp_packet_t packet_from_event_hdr(_odp_event_hdr_t *event_hdr) { - return (odp_packet_t)(odp_packet_hdr_t *)buf_hdr; + return (odp_packet_t)(uintptr_t)event_hdr; } static inline odp_packet_hdr_t *packet_last_seg(odp_packet_hdr_t *hdr) |