DPDK patches and discussions
 help / color / mirror / Atom feed
From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
To: "Zhang, Roy Fan" <roy.fan.zhang@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] crypto/scheduler: fix initialization
Date: Thu, 9 Feb 2017 17:02:25 +0000	[thread overview]
Message-ID: <E115CCD9D858EF4F90C690B0DCB4D897476D78CF@IRSMSX108.ger.corp.intel.com> (raw)
In-Reply-To: <1486647868-159267-1-git-send-email-roy.fan.zhang@intel.com>

Hi Fan,

> -----Original Message-----
> From: Zhang, Roy Fan
> Sent: Thursday, February 09, 2017 1:44 PM
> To: dev@dpdk.org
> Cc: De Lara Guarch, Pablo
> Subject: [PATCH] crypto/scheduler: fix initialization
> 
> Fixes the wrong slave initialization issue on start-up
> 
> Fixes: 100e4f7("add round-robin mode")

Use the first 6 bytes of the commit SHA (12 digits).

> 
> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> ---
>  drivers/crypto/scheduler/scheduler_roundrobin.c | 16 +++++++---------
>  1 file changed, 7 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/crypto/scheduler/scheduler_roundrobin.c
> b/drivers/crypto/scheduler/scheduler_roundrobin.c
> index 7abdd29..ef2d683 100644
> --- a/drivers/crypto/scheduler/scheduler_roundrobin.c
> +++ b/drivers/crypto/scheduler/scheduler_roundrobin.c
> @@ -62,6 +62,11 @@ schedule_enqueue(void *qp_ctx, struct
> rte_crypto_op **ops, uint16_t nb_ops)
>  		rte_prefetch0(ops[i]->sym->session);
> 
>  	for (i = 0; (i < (nb_ops - 8)) && (nb_ops > 8); i += 4) {
> +		rte_prefetch0(ops[i + 4]->sym->session);
> +		rte_prefetch0(ops[i + 5]->sym->session);
> +		rte_prefetch0(ops[i + 6]->sym->session);
> +		rte_prefetch0(ops[i + 7]->sym->session);
> +
>  		sess0 = (struct scheduler_session *)
>  				ops[i]->sym->session->_private;
>  		sess1 = (struct scheduler_session *)
> @@ -80,11 +85,6 @@ schedule_enqueue(void *qp_ctx, struct
> rte_crypto_op **ops, uint16_t nb_ops)
>  		ops[i + 1]->sym->session = sess1->sessions[slave_idx];
>  		ops[i + 2]->sym->session = sess2->sessions[slave_idx];
>  		ops[i + 3]->sym->session = sess3->sessions[slave_idx];
> -
> -		rte_prefetch0(ops[i + 4]->sym->session);
> -		rte_prefetch0(ops[i + 5]->sym->session);
> -		rte_prefetch0(ops[i + 6]->sym->session);
> -		rte_prefetch0(ops[i + 7]->sym->session);
>  	}

I think this move should go into another patch.

Thanks,
Pablo

      reply	other threads:[~2017-02-09 17:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09 13:44 Fan Zhang
2017-02-09 17:02 ` De Lara Guarch, Pablo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E115CCD9D858EF4F90C690B0DCB4D897476D78CF@IRSMSX108.ger.corp.intel.com \
    --to=pablo.de.lara.guarch@intel.com \
    --cc=dev@dpdk.org \
    --cc=roy.fan.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).