From 0d934707499ff6770829d6f305bf3679247d8d0f Mon Sep 17 00:00:00 2001 From: Bill Fischofer Date: Mon, 15 Dec 2014 19:09:49 +0200 Subject: api: buffer: change pool create Modify pool create API to be able to specify number of buffers directly. Signed-off-by: Bill Fischofer Signed-off-by: Taras Kondratiuk Reviewed-and-tested-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/odp_timer_internal.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'platform/linux-generic/include/odp_timer_internal.h') diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h index ad28f534e..2ff36ce0d 100644 --- a/platform/linux-generic/include/odp_timer_internal.h +++ b/platform/linux-generic/include/odp_timer_internal.h @@ -51,14 +51,9 @@ typedef struct odp_timeout_hdr_t { uint8_t buf_data[]; } odp_timeout_hdr_t; - - -ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) == - ODP_OFFSETOF(odp_timeout_hdr_t, buf_data), - "ODP_TIMEOUT_HDR_T__SIZE_ERR"); - -ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) % sizeof(uint64_t) == 0, - "ODP_TIMEOUT_HDR_T__SIZE_ERR2"); +typedef struct odp_timeout_hdr_stride { + uint8_t pad[ODP_CACHE_LINE_SIZE_ROUNDUP(sizeof(odp_timeout_hdr_t))]; +} odp_timeout_hdr_stride; /** -- cgit v1.2.3