All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto/qat: optimisation of request copy
@ 2016-08-04 12:00 Fiona Trahe
  2016-08-04 16:02 ` John Griffin
  0 siblings, 1 reply; 3+ messages in thread
From: Fiona Trahe @ 2016-08-04 12:00 UTC (permalink / raw)
  To: dev; +Cc: Declan.doherty, pablo.de.lara.guarch, Fiona Trahe

From: Fiona Trahe <fiona.trahe@intel.com>

using rte_mov128 instead of structure assignment to copy
template request from session context into request

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>

---
 drivers/crypto/qat/qat_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c
index e2a501b..ff0c691 100644
--- a/drivers/crypto/qat/qat_crypto.c
+++ b/drivers/crypto/qat/qat_crypto.c
@@ -832,7 +832,7 @@ qat_write_hw_desc_entry(struct rte_crypto_op *op, uint8_t *out_msg)
 
 	ctx = (struct qat_session *)op->sym->session->_private;
 	qat_req = (struct icp_qat_fw_la_bulk_req *)out_msg;
-	*qat_req = ctx->fw_req;
+	rte_mov128((uint8_t *)qat_req, (const uint8_t *)&(ctx->fw_req));
 	qat_req->comn_mid.opaque_data = (uint64_t)(uintptr_t)op;
 
 	qat_req->comn_mid.dst_length =
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto/qat: optimisation of request copy
  2016-08-04 12:00 [PATCH] crypto/qat: optimisation of request copy Fiona Trahe
@ 2016-08-04 16:02 ` John Griffin
  2016-08-30 20:55   ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 3+ messages in thread
From: John Griffin @ 2016-08-04 16:02 UTC (permalink / raw)
  To: Fiona Trahe, dev; +Cc: Declan.doherty, pablo.de.lara.guarch

On 04/08/16 13:00, Fiona Trahe wrote:
> From: Fiona Trahe <fiona.trahe@intel.com>
>
> using rte_mov128 instead of structure assignment to copy
> template request from session context into request
>
> Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
>
> ---
>   drivers/crypto/qat/qat_crypto.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>

Acked-by: John Griffin <john.griffin@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto/qat: optimisation of request copy
  2016-08-04 16:02 ` John Griffin
@ 2016-08-30 20:55   ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2016-08-30 20:55 UTC (permalink / raw)
  To: Griffin, John, Trahe, Fiona, dev; +Cc: Doherty, Declan



> -----Original Message-----
> From: Griffin, John
> Sent: Thursday, August 04, 2016 9:03 AM
> To: Trahe, Fiona; dev@dpdk.org
> Cc: Doherty, Declan; De Lara Guarch, Pablo
> Subject: Re: [dpdk-dev] [PATCH] crypto/qat: optimisation of request copy
> 
> On 04/08/16 13:00, Fiona Trahe wrote:
> > From: Fiona Trahe <fiona.trahe@intel.com>
> >
> > using rte_mov128 instead of structure assignment to copy
> > template request from session context into request
> >
> > Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> >
> > ---
> >   drivers/crypto/qat/qat_crypto.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> 
> Acked-by: John Griffin <john.griffin@intel.com>

Applied to dpdk-next-crypto.
Thanks,
Pablo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-30 20:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 12:00 [PATCH] crypto/qat: optimisation of request copy Fiona Trahe
2016-08-04 16:02 ` John Griffin
2016-08-30 20:55   ` De Lara Guarch, Pablo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.