From: Maxime Coquelin Date: Mon, 28 Sep 2020 09:17:10 +0000 (+0200) Subject: examples/vhost_crypto: use vhost async-copy flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c08736b389a8f8fdcf41a0f7653605179813ed12;p=dpdk.git examples/vhost_crypto: use vhost async-copy flag The crypto backend uses RTE_VHOST_USER_DEQUEUE_ZERO_COPY only for the shared areas to be populated at mmap time. It does not use the other mechanisms the feature provides. Now that RTE_VHOST_USER_DEQUEUE_ZERO_COPY is being removed, let's use RTE_VHOST_USER_ASYNC_COPY instead which does the same thing. Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia --- diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c index 11b022e813..d78fd9b810 100644 --- a/examples/vhost_crypto/main.c +++ b/examples/vhost_crypto/main.c @@ -588,7 +588,7 @@ main(int argc, char *argv[]) for (j = 0; j < lo->nb_sockets; j++) { ret = rte_vhost_driver_register(lo->socket_files[j], - RTE_VHOST_USER_DEQUEUE_ZERO_COPY); + RTE_VHOST_USER_ASYNC_COPY); if (ret < 0) { RTE_LOG(ERR, USER1, "socket %s already exists\n", lo->socket_files[j]);