diff options
author | Matias Elo <matias.elo@nokia.com> | 2019-04-10 15:31:23 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2019-04-17 11:10:46 +0300 |
commit | 0a5eff079dfa17ecb5bc67244eeb6983e1bcf296 (patch) | |
tree | f04aab5c5c649b056dbbc0ac69678bb54a9342af /platform/linux-generic/include/odp_ring_u32_internal.h | |
parent | b3cacf62c188e2d2696bb6993a9328127274b9b0 (diff) |
linux-gen: ring: enable storing pointers in ring data
Added new ring type ring_ptr_t, which uses the same implementation as old
ring_t, but stores pointers instead of indices. The old ring_t type is
renamed to ring_u32_t.
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_ring_u32_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_ring_u32_internal.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_ring_u32_internal.h b/platform/linux-generic/include/odp_ring_u32_internal.h new file mode 100644 index 000000000..baa02e4ca --- /dev/null +++ b/platform/linux-generic/include/odp_ring_u32_internal.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2019, Nokia + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_RING_U32_INTERNAL_H_ +#define ODP_RING_U32_INTERNAL_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <odp_ring_common.h> + +#undef _ODP_RING_TYPE +#define _ODP_RING_TYPE _ODP_RING_TYPE_U32 + +#include <odp_ring_internal.h> + +#ifdef __cplusplus +} +#endif + +#endif |