* [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket
@ 2018-12-11 15:09 Fan Zhang
2018-12-11 18:14 ` Maxime Coquelin
2018-12-11 18:34 ` Maxime Coquelin
0 siblings, 2 replies; 3+ messages in thread
From: Fan Zhang @ 2018-12-11 15:09 UTC (permalink / raw)
To: dev; +Cc: akhil.goyal, stable
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>
---
examples/vhost_crypto/main.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
index f08babd97..3deb5263f 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) {
--
2.13.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket
2018-12-11 15:09 [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket Fan Zhang
@ 2018-12-11 18:14 ` Maxime Coquelin
2018-12-11 18:34 ` Maxime Coquelin
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Coquelin @ 2018-12-11 18:14 UTC (permalink / raw)
To: Fan Zhang, dev; +Cc: akhil.goyal, stable
On 12/11/18 4:09 PM, Fan Zhang wrote:
> 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>
> ---
> examples/vhost_crypto/main.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
> index f08babd97..3deb5263f 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) {
>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket
2018-12-11 15:09 [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket Fan Zhang
2018-12-11 18:14 ` Maxime Coquelin
@ 2018-12-11 18:34 ` Maxime Coquelin
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Coquelin @ 2018-12-11 18:34 UTC (permalink / raw)
To: Fan Zhang, dev; +Cc: akhil.goyal, stable
On 12/11/18 4:09 PM, Fan Zhang wrote:
> 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>
> ---
> examples/vhost_crypto/main.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
>
Applied to dpdk-next-virtio.
Thanks,
Maxime
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-11 18:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-11 15:09 [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket Fan Zhang
2018-12-11 18:14 ` Maxime Coquelin
2018-12-11 18:34 ` Maxime Coquelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).