diff options
Diffstat (limited to 'platform/linux-dpdk/include')
-rw-r--r-- | platform/linux-dpdk/include/api/odp_buffer.h | 13 | ||||
-rw-r--r-- | platform/linux-dpdk/include/api/odp_buffer_pool.h | 4 | ||||
-rw-r--r-- | platform/linux-dpdk/include/api/odp_packet.h | 13 | ||||
-rw-r--r-- | platform/linux-dpdk/include/api/odp_packet_io.h | 7 |
4 files changed, 3 insertions, 34 deletions
diff --git a/platform/linux-dpdk/include/api/odp_buffer.h b/platform/linux-dpdk/include/api/odp_buffer.h index b2fbc7612..991aa124b 100644 --- a/platform/linux-dpdk/include/api/odp_buffer.h +++ b/platform/linux-dpdk/include/api/odp_buffer.h @@ -21,18 +21,7 @@ extern "C" { #include <odp_std_types.h> - - - - - -/** - * ODP buffer - */ -typedef unsigned long odp_buffer_t; - - -#define ODP_BUFFER_INVALID (unsigned long)(-1L) /**< Invalid buffer */ +#include <odp_platform_types.h> /** diff --git a/platform/linux-dpdk/include/api/odp_buffer_pool.h b/platform/linux-dpdk/include/api/odp_buffer_pool.h index 382f4f064..ff04a8c7b 100644 --- a/platform/linux-dpdk/include/api/odp_buffer_pool.h +++ b/platform/linux-dpdk/include/api/odp_buffer_pool.h @@ -21,6 +21,7 @@ extern "C" { #include <odp_std_types.h> +#include <odp_platform_types.h> #include <odp_buffer.h> /** Maximum queue name lenght in chars */ @@ -29,9 +30,6 @@ extern "C" { /** Invalid buffer pool */ #define ODP_BUFFER_POOL_INVALID (unsigned long)(-1L) -/** ODP buffer pool */ -typedef unsigned long odp_buffer_pool_t; - /** * Create a buffer pool diff --git a/platform/linux-dpdk/include/api/odp_packet.h b/platform/linux-dpdk/include/api/odp_packet.h index 50e19ec06..c303d7840 100644 --- a/platform/linux-dpdk/include/api/odp_packet.h +++ b/platform/linux-dpdk/include/api/odp_packet.h @@ -22,19 +22,6 @@ extern "C" { /** - * ODP packet descriptor - */ -typedef odp_buffer_t odp_packet_t; - - -/** Invalid packet */ -#define ODP_PACKET_INVALID ODP_BUFFER_INVALID - -/** Invalid offset */ -#define ODP_PACKET_OFFSET_INVALID ((size_t)-1) - - -/** * Initialize the packet * * Needs to be called if the user allocates a packet buffer, i.e. the packet diff --git a/platform/linux-dpdk/include/api/odp_packet_io.h b/platform/linux-dpdk/include/api/odp_packet_io.h index cbcef62ae..80cc59ebf 100644 --- a/platform/linux-dpdk/include/api/odp_packet_io.h +++ b/platform/linux-dpdk/include/api/odp_packet_io.h @@ -19,16 +19,11 @@ extern "C" { #endif #include <odp_std_types.h> +#include <odp_platform_types.h> #include <odp_buffer_pool.h> #include <odp_packet.h> #include <odp_queue.h> -/** ODP packet IO handle */ -typedef uint32_t odp_pktio_t; - -/** Invalid packet IO handle */ -#define ODP_PKTIO_INVALID 0 - /** * Open an ODP packet IO instance * |