diff mbox

[API-NEXT,PATCHv4,3/6] linux-generic: buffer: restructure user mdatadata fields

Message ID 1428681138-24954-4-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 303e2ec23a876d497af7ce81f969d3ef274a670b
Headers show

Commit Message

Bill Fischofer April 10, 2015, 3:52 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp_buffer_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ciprian Barbu April 16, 2015, 8:48 a.m. UTC | #1
nit: typo in subject for metadata (or mdata?)

On Fri, Apr 10, 2015 at 6:52 PM, Bill Fischofer
<bill.fischofer@linaro.org> wrote:
> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
> ---
>  platform/linux-generic/include/odp_buffer_internal.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h
> index 3a3d2a2..ee965bb 100644
> --- a/platform/linux-generic/include/odp_buffer_internal.h
> +++ b/platform/linux-generic/include/odp_buffer_internal.h
> @@ -124,9 +124,9 @@ typedef struct odp_buffer_hdr_t {
>                 uint64_t         buf_u64;    /* user u64 */
>                 void            *buf_ctx;    /* user context */
>                 const void      *buf_cctx;   /* const alias for ctx */
> -               void            *udata_addr; /* user metadata addr */
>         };
> -       size_t                   udata_size; /* size of user metadata */
> +       void                    *udata_addr; /* user metadata addr */
> +       uint32_t                 udata_size; /* size of user metadata */
>         uint32_t                 segcount;   /* segment count */
>         uint32_t                 segsize;    /* segment size */
>         void                    *addr[ODP_BUFFER_MAX_SEG]; /* block addrs */
> --
> 2.1.0
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h
index 3a3d2a2..ee965bb 100644
--- a/platform/linux-generic/include/odp_buffer_internal.h
+++ b/platform/linux-generic/include/odp_buffer_internal.h
@@ -124,9 +124,9 @@  typedef struct odp_buffer_hdr_t {
 		uint64_t         buf_u64;    /* user u64 */
 		void            *buf_ctx;    /* user context */
 		const void      *buf_cctx;   /* const alias for ctx */
-		void            *udata_addr; /* user metadata addr */
 	};
-	size_t                   udata_size; /* size of user metadata */
+	void                    *udata_addr; /* user metadata addr */
+	uint32_t                 udata_size; /* size of user metadata */
 	uint32_t                 segcount;   /* segment count */
 	uint32_t                 segsize;    /* segment size */
 	void                    *addr[ODP_BUFFER_MAX_SEG]; /* block addrs */