[dpdk-dev] [PATCH] vhost/crypto: fix missing head correction
Fan Zhang
roy.fan.zhang at intel.com
Fri Apr 27 15:52:33 CEST 2018
Fixes: 473387aaae4a ("vhost/crypto: move to safe GPA translation API")
This patch fixes the missing head descriptor correction for
indirect descriptors.
Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
---
lib/librte_vhost/vhost_crypto.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c
index c38eb3bb5..81fab7e94 100644
--- a/lib/librte_vhost/vhost_crypto.c
+++ b/lib/librte_vhost/vhost_crypto.c
@@ -919,6 +919,7 @@ vhost_crypto_process_one_req(struct vhost_crypto *vcrypto,
if (unlikely(!desc || dlen != head->len))
return -1;
desc_idx = 0;
+ head = desc;
} else {
desc = head;
}
--
2.13.6
More information about the dev
mailing list