summaryrefslogtreecommitdiff
path: root/examples/vhost_crypto
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2018-12-11 15:09:51 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-13 18:17:42 +0000
commit57f9a9fc3c54aaae838698d846fb124836900c7a (patch)
tree155d774316477c00f6e41dc9ccc5b97e55d82601 /examples/vhost_crypto
parent48cae0bfa60c451c5d9c0d5be932300aadc7e676 (diff)
downloaddpdk-next-eventdev-57f9a9fc3c54aaae838698d846fb124836900c7a.zip
dpdk-next-eventdev-57f9a9fc3c54aaae838698d846fb124836900c7a.tar.gz
dpdk-next-eventdev-57f9a9fc3c54aaae838698d846fb124836900c7a.tar.xz
examples/vhost_crypto: fix bracket
This patch fixes a missed bracket bug in the code. Fixes: e1d90eaa83ff ("examples/vhost_crypto: fix zero copy") Cc: stable@dpdk.org Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Diffstat (limited to 'examples/vhost_crypto')
-rw-r--r--examples/vhost_crypto/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
index f08babd..3deb526 100644
--- a/examples/vhost_crypto/main.c
+++ b/examples/vhost_crypto/main.c
@@ -503,11 +503,12 @@ main(int argc, char *argv[])
if (strstr(dev_info.driver_name,
RTE_STR(VHOST_CRYPTO_CDEV_NAME_AESNI_MB_PMD)) ||
strstr(dev_info.driver_name,
- RTE_STR(VHOST_CRYPTO_CDEV_NAME_AESNI_GCM_PMD)))
- RTE_LOG(ERR, USER1, "Cannot enable zero-copy in %s\n",
+ RTE_STR(VHOST_CRYPTO_CDEV_NAME_AESNI_GCM_PMD))) {
+ RTE_LOG(ERR, USER1, "Cannot enable zero-copy in %s\n",
dev_info.driver_name);
- ret = -EPERM;
- goto error_exit;
+ ret = -EPERM;
+ goto error_exit;
+ }
}
if (dev_info.max_nb_queue_pairs < info->qid + 1) {