DPDK 'struct rte_ring' (rte_ring.h) uses identical names
which causes redefinition error.

Signed-off-by: Matias Elo <matias....@nokia.com>
---
 platform/linux-generic/include/odp_packet_io_ring_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/platform/linux-generic/include/odp_packet_io_ring_internal.h 
b/platform/linux-generic/include/odp_packet_io_ring_internal.h
index 816cbb7..413787a 100644
--- a/platform/linux-generic/include/odp_packet_io_ring_internal.h
+++ b/platform/linux-generic/include/odp_packet_io_ring_internal.h
@@ -132,7 +132,7 @@ typedef struct _ring {
        int flags;
 
        /** @private Producer */
-       struct prod {
+       struct _prod {
                uint32_t watermark;      /* Maximum items */
                uint32_t sp_enqueue;     /* True, if single producer. */
                uint32_t size;           /* Size of ring. */
@@ -142,7 +142,7 @@ typedef struct _ring {
        } prod ODP_ALIGNED_CACHE;
 
        /** @private Consumer */
-       struct cons {
+       struct _cons {
                uint32_t sc_dequeue;     /* True, if single consumer. */
                uint32_t size;           /* Size of the ring. */
                uint32_t mask;           /* Mask (size-1) of ring. */
-- 
1.9.1

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to