aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_ring_u32_internal.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2019-04-10 15:31:23 +0300
committerMatias Elo <matias.elo@nokia.com>2019-04-17 11:10:46 +0300
commit0a5eff079dfa17ecb5bc67244eeb6983e1bcf296 (patch)
treef04aab5c5c649b056dbbc0ac69678bb54a9342af /platform/linux-generic/include/odp_ring_u32_internal.h
parentb3cacf62c188e2d2696bb6993a9328127274b9b0 (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.h25
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