From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 035EDA0471 for ; Mon, 17 Jun 2019 19:08:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 57C131BF50; Mon, 17 Jun 2019 19:08:38 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C7E601BE91; Mon, 17 Jun 2019 19:08:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jun 2019 09:57:55 -0700 X-ExtLoop1: 1 Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by orsmga003.jf.intel.com with ESMTP; 17 Jun 2019 09:57:53 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by irsmsx105.ger.corp.intel.com (163.33.3.28) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 17 Jun 2019 17:57:52 +0100 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.143]) by irsmsx111.ger.corp.intel.com ([169.254.2.197]) with mapi id 14.03.0439.000; Mon, 17 Jun 2019 17:57:51 +0100 From: "Kovacevic, Marko" To: "Zhang, Roy Fan" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Zhang, Roy Fan" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] vhost/crypto: fix inferred misuse of enum Thread-Index: AQHVCzk1j4Beqi2Tx0yLKxmwcsax2KagL1oA Date: Mon, 17 Jun 2019 16:57:51 +0000 Message-ID: <6DC05C7C5F25994B81B3F2F214251F66020F94FB@IRSMSX104.ger.corp.intel.com> References: <20190515160911.79543-1-roy.fan.zhang@intel.com> In-Reply-To: <20190515160911.79543-1-roy.fan.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzEwYjY5OWEtZmE0Ny00YzFkLWJlZmYtOTlmZWRjNjJkNjBjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUmoyQ2xDZ3dHSFl1WWo4dUoxVnhaaFRQN0U5RmtCQTFEZnVITlB4WEFFdUN5VEhYN0cxc05PZ0F2MGZkTzl5USJ9 x-ctpclassification: CTP_NT x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] vhost/crypto: fix inferred misuse of enum 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > Subject: [dpdk-dev] [PATCH] vhost/crypto: fix inferred misuse of enum >=20 > This patch fixes the inferred misuse of enum of crypto algorithms. >=20 > Coverity issue: 325879 > Fixes: e80a98708166 ("vhost/crypto: add session message handler") > Cc: stable@dpdk.org >=20 > Signed-off-by: Fan Zhang > --- > lib/librte_vhost/vhost_crypto.c | 93 ++++++++++++++++++-----------------= --- > --- > 1 file changed, 41 insertions(+), 52 deletions(-) >=20 > diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_cry= pto.c > index 0edf12d52..b812661ef 100644 > --- a/lib/librte_vhost/vhost_crypto.c > +++ b/lib/librte_vhost/vhost_crypto.c > @@ -46,116 +46,107 @@ > ((t)(uintptr_t)vhost_iova_to_vva(r->dev, r->vq, a, l, p)) <...> Acked-by: Marko Kovacevic