From: Fan Zhang Date: Wed, 9 May 2018 14:08:39 +0000 (+0100) Subject: vhost/crypto: fix descriptor move X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2017bc33561af8e9880f077cef541ea947a06de0;p=dpdk.git vhost/crypto: fix descriptor move 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. Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Fan Zhang Reviewed-by: Maxime Coquelin --- diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c index 04ff8cd489..4c256284e8 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;