From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fan Zhang Subject: [PATCH] vhost/crypto: fix descriptor move Date: Wed, 9 May 2018 15:08:39 +0100 Message-ID: <20180509140839.85818-1-roy.fan.zhang@intel.com> Cc: roy.fan.zhang@intel.com, maxime.coquelin@redhat.com To: dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id F00B61B67E for ; Wed, 9 May 2018 16:15:49 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes the redundant descriptor move in the copy mode of vhost crypto. Originally the redundant descriptor move will cause the message parsing error. Signed-off-by: Fan Zhang --- lib/librte_vhost/vhost_crypto.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c index 04ff8cd48..4c256284e 100644 --- a/lib/librte_vhost/vhost_crypto.c +++ b/lib/librte_vhost/vhost_crypto.c @@ -853,11 +853,6 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op, op->sym->auth.digest.data = digest_addr; op->sym->auth.digest.phys_addr = rte_pktmbuf_iova_offset(m_dst, digest_offset); - if (unlikely(move_desc(head, &desc, - chain->para.hash_result_len) < 0)) { - ret = VIRTIO_CRYPTO_ERR; - goto error_exit; - } break; default: ret = VIRTIO_CRYPTO_BADMSG; -- 2.13.6