From: Fiona Trahe Date: Thu, 4 Aug 2016 12:00:15 +0000 (+0100) Subject: crypto/qat: optimize request copy X-Git-Tag: spdx-start~5748 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1bb14aab6d76dedec6cda54f409c2e314a3ae5cb;p=dpdk.git crypto/qat: optimize request copy using rte_mov128 instead of structure assignment to copy template request from session context into request Signed-off-by: Fiona Trahe Acked-by: John Griffin --- diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c index 93b368c24d..362dc0122f 100644 --- a/drivers/crypto/qat/qat_crypto.c +++ b/drivers/crypto/qat/qat_crypto.c @@ -718,7 +718,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 =