diff mbox

linux-generic: queue: direct internal enqueues to target queue

Message ID 1441934756-22142-1-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 4d07d2ad4db899c08eecf92153eb87145b7307d7
Headers show

Commit Message

Bill Fischofer Sept. 11, 2015, 1:25 a.m. UTC
Fix Bug https://bugs.linaro.org/show_bug.cgi?id=1803 by ensuring that
enqueues are directed at a buffer's target rather than origin queue.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/odp_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Nicolas Morey-Chaisemartin Sept. 11, 2015, 9:47 a.m. UTC | #1
On 09/11/2015 03:25 AM, Bill Fischofer wrote:
> Fix Bug https://bugs.linaro.org/show_bug.cgi?id=1803 by ensuring that
> enqueues are directed at a buffer's target rather than origin queue.
>
> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Nicolas Morey-Chaisemartin <nmorey@kalrey.eu>
> ---
>  platform/linux-generic/odp_queue.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c
> index ac933da..99a663d 100644
> --- a/platform/linux-generic/odp_queue.c
> +++ b/platform/linux-generic/odp_queue.c
> @@ -570,7 +570,7 @@ int odp_queue_enq(odp_queue_t handle, odp_event_t ev)
>  
>  int queue_enq_internal(odp_buffer_hdr_t *buf_hdr)
>  {
> -	return buf_hdr->origin_qe->s.enqueue(buf_hdr->target_qe, buf_hdr,
> +	return buf_hdr->target_qe->s.enqueue(buf_hdr->target_qe, buf_hdr,
>  					     buf_hdr->flags.sustain);
>  }
>
Maxim Uvarov Sept. 14, 2015, 1:59 p.m. UTC | #2
Merged,
Maxim.

On 09/11/15 04:25, Bill Fischofer wrote:
> Fix Bug https://bugs.linaro.org/show_bug.cgi?id=1803 by ensuring that
> enqueues are directed at a buffer's target rather than origin queue.
>
> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
> ---
>   platform/linux-generic/odp_queue.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c
> index ac933da..99a663d 100644
> --- a/platform/linux-generic/odp_queue.c
> +++ b/platform/linux-generic/odp_queue.c
> @@ -570,7 +570,7 @@ int odp_queue_enq(odp_queue_t handle, odp_event_t ev)
>   
>   int queue_enq_internal(odp_buffer_hdr_t *buf_hdr)
>   {
> -	return buf_hdr->origin_qe->s.enqueue(buf_hdr->target_qe, buf_hdr,
> +	return buf_hdr->target_qe->s.enqueue(buf_hdr->target_qe, buf_hdr,
>   					     buf_hdr->flags.sustain);
>   }
>
diff mbox

Patch

diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c
index ac933da..99a663d 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -570,7 +570,7 @@  int odp_queue_enq(odp_queue_t handle, odp_event_t ev)
 
 int queue_enq_internal(odp_buffer_hdr_t *buf_hdr)
 {
-	return buf_hdr->origin_qe->s.enqueue(buf_hdr->target_qe, buf_hdr,
+	return buf_hdr->target_qe->s.enqueue(buf_hdr->target_qe, buf_hdr,
 					     buf_hdr->flags.sustain);
 }