From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 694987D4A; Tue, 11 Dec 2018 19:14:36 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 78BFC3082133; Tue, 11 Dec 2018 18:14:35 +0000 (UTC) Received: from [10.36.112.28] (ovpn-112-28.ams2.redhat.com [10.36.112.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D714B5C207; Tue, 11 Dec 2018 18:14:33 +0000 (UTC) To: Fan Zhang , dev@dpdk.org Cc: akhil.goyal@nxp.com, stable@dpdk.org References: <20181211150951.22665-1-roy.fan.zhang@intel.com> From: Maxime Coquelin Message-ID: <9fcc4310-e188-668c-74c9-4ea3c995f19b@redhat.com> Date: Tue, 11 Dec 2018 19:14:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181211150951.22665-1-roy.fan.zhang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 11 Dec 2018 18:14:35 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix bracket X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2018 18:14:36 -0000 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 > --- > 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 Thanks, Maxime