diff mbox

[2/4] extend to 64 bit addressing

Message ID 1399989949-14234-3-git-send-email-vincent.hsu@linaro.org
State Changes Requested
Headers show

Commit Message

Vincent Hsu May 13, 2014, 2:05 p.m. UTC
---
 include/odp_buffer.h      |    2 +-
 include/odp_buffer_pool.h |    2 +-
 include/odp_packet.h      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Taras Kondratiuk May 13, 2014, 2:51 p.m. UTC | #1
On 05/13/2014 05:05 PM, Vincent Hsu wrote:
> ---
>   include/odp_buffer.h      |    2 +-
>   include/odp_buffer_pool.h |    2 +-
>   include/odp_packet.h      |    2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/odp_buffer.h b/include/odp_buffer.h
> index d79e76d..8bdd573 100644
> --- a/include/odp_buffer.h
> +++ b/include/odp_buffer.h
> @@ -29,7 +29,7 @@ extern "C" {
>   /**
>    * ODP buffer
>    */
> -typedef uint32_t odp_buffer_t;
> +typedef uint64_t odp_buffer_t;
>
>   #define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */
>
> diff --git a/include/odp_buffer_pool.h b/include/odp_buffer_pool.h
> index 9112489..0e01f8b 100644
> --- a/include/odp_buffer_pool.h
> +++ b/include/odp_buffer_pool.h
> @@ -30,7 +30,7 @@ extern "C" {
>   #define ODP_BUFFER_POOL_INVALID  (0xffffffff)
>
>   /** ODP buffer pool */
> -typedef uint32_t odp_buffer_pool_t;
> +typedef uint64_t odp_buffer_pool_t;
>
>
>   /**
> diff --git a/include/odp_packet.h b/include/odp_packet.h
> index f7014fb..cf5a199 100644
> --- a/include/odp_packet.h
> +++ b/include/odp_packet.h
> @@ -24,7 +24,7 @@ extern "C" {
>   /**
>    * ODP packet descriptor
>    */
> -typedef uint32_t odp_packet_t;
> +typedef uint64_t odp_packet_t;
>
>   /** Invalid packet */
>   #define ODP_PACKET_INVALID ODP_BUFFER_INVALID
>

You can't make this in a common place.
Copy these files into platform/linux-dpdk/include/api and modify them
there.
Vincent Hsu May 14, 2014, 3:03 a.m. UTC | #2
On Tue, May 13, 2014 at 10:51 PM, Taras Kondratiuk <
taras.kondratiuk@linaro.org> wrote:

> On 05/13/2014 05:05 PM, Vincent Hsu wrote:
>
>> ---
>>   include/odp_buffer.h      |    2 +-
>>   include/odp_buffer_pool.h |    2 +-
>>   include/odp_packet.h      |    2 +-
>>   3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/include/odp_buffer.h b/include/odp_buffer.h
>> index d79e76d..8bdd573 100644
>> --- a/include/odp_buffer.h
>> +++ b/include/odp_buffer.h
>> @@ -29,7 +29,7 @@ extern "C" {
>>   /**
>>    * ODP buffer
>>    */
>> -typedef uint32_t odp_buffer_t;
>> +typedef uint64_t odp_buffer_t;
>>
>>   #define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */
>>
>> diff --git a/include/odp_buffer_pool.h b/include/odp_buffer_pool.h
>> index 9112489..0e01f8b 100644
>> --- a/include/odp_buffer_pool.h
>> +++ b/include/odp_buffer_pool.h
>> @@ -30,7 +30,7 @@ extern "C" {
>>   #define ODP_BUFFER_POOL_INVALID  (0xffffffff)
>>
>>   /** ODP buffer pool */
>> -typedef uint32_t odp_buffer_pool_t;
>> +typedef uint64_t odp_buffer_pool_t;
>>
>>
>>   /**
>> diff --git a/include/odp_packet.h b/include/odp_packet.h
>> index f7014fb..cf5a199 100644
>> --- a/include/odp_packet.h
>> +++ b/include/odp_packet.h
>> @@ -24,7 +24,7 @@ extern "C" {
>>   /**
>>    * ODP packet descriptor
>>    */
>> -typedef uint32_t odp_packet_t;
>> +typedef uint64_t odp_packet_t;
>>
>>   /** Invalid packet */
>>   #define ODP_PACKET_INVALID ODP_BUFFER_INVALID
>>
>>
> You can't make this in a common place.
> Copy these files into platform/linux-dpdk/include/api and modify them
> there.
>
> --
> Taras Kondratiuk
>

Sounds good. Will do it, thanks.
diff mbox

Patch

diff --git a/include/odp_buffer.h b/include/odp_buffer.h
index d79e76d..8bdd573 100644
--- a/include/odp_buffer.h
+++ b/include/odp_buffer.h
@@ -29,7 +29,7 @@  extern "C" {
 /**
  * ODP buffer
  */
-typedef uint32_t odp_buffer_t;
+typedef uint64_t odp_buffer_t;
 
 #define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */
 
diff --git a/include/odp_buffer_pool.h b/include/odp_buffer_pool.h
index 9112489..0e01f8b 100644
--- a/include/odp_buffer_pool.h
+++ b/include/odp_buffer_pool.h
@@ -30,7 +30,7 @@  extern "C" {
 #define ODP_BUFFER_POOL_INVALID  (0xffffffff)
 
 /** ODP buffer pool */
-typedef uint32_t odp_buffer_pool_t;
+typedef uint64_t odp_buffer_pool_t;
 
 
 /**
diff --git a/include/odp_packet.h b/include/odp_packet.h
index f7014fb..cf5a199 100644
--- a/include/odp_packet.h
+++ b/include/odp_packet.h
@@ -24,7 +24,7 @@  extern "C" {
 /**
  * ODP packet descriptor
  */
-typedef uint32_t odp_packet_t;
+typedef uint64_t odp_packet_t;
 
 /** Invalid packet */
 #define ODP_PACKET_INVALID ODP_BUFFER_INVALID