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 B26C41B3F5 for ; Fri, 23 Nov 2018 11:30:05 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 149063680B; Fri, 23 Nov 2018 10:30:05 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.36.118.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 171E7413C; Fri, 23 Nov 2018 10:30:03 +0000 (UTC) From: Kevin Traynor To: Fan Zhang Cc: Ferruh Yigit , dpdk stable Date: Fri, 23 Nov 2018 10:26:47 +0000 Message-Id: <20181123102713.17309-43-ktraynor@redhat.com> In-Reply-To: <20181123102713.17309-1-ktraynor@redhat.com> References: <20181123102713.17309-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 23 Nov 2018 10:30:05 +0000 (UTC) Subject: [dpdk-stable] patch 'vhost/crypto: fix inferred misuse of enum' has been queued to stable release 18.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2018 10:30:06 -0000 Hi, FYI, your patch has been queued to stable release 18.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/29/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Kevin Traynor --- >>From 758086d0110dc6d1a939ac7e8db78f192d78141b Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Thu, 1 Nov 2018 14:15:04 +0000 Subject: [PATCH] vhost/crypto: fix inferred misuse of enum [ upstream commit d09328567e3212306b91d314a28214f81e0e9adf ] Fix inffered misuse of enum rte_crypto_cipher_algorithm and rte_crypto_auth_algorithm Coverity issue: 277202 Fixes: e80a98708166 ("vhost/crypto: add session message handler") Signed-off-by: Fan Zhang Reviewed-by: Ferruh Yigit --- lib/librte_vhost/vhost_crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c index 57341ef8f..1affeddfe 100644 --- a/lib/librte_vhost/vhost_crypto.c +++ b/lib/librte_vhost/vhost_crypto.c @@ -239,5 +239,5 @@ transform_cipher_param(struct rte_crypto_sym_xform *xform, xform->type = RTE_CRYPTO_SYM_XFORM_CIPHER; - xform->cipher.algo = (uint32_t)ret; + xform->cipher.algo = (enum rte_crypto_cipher_algorithm)ret; xform->cipher.key.length = param->cipher_key_len; if (xform->cipher.key.length > 0) @@ -289,5 +289,5 @@ transform_chain_param(struct rte_crypto_sym_xform *xforms, return ret; xform_cipher->type = RTE_CRYPTO_SYM_XFORM_CIPHER; - xform_cipher->cipher.algo = (uint32_t)ret; + xform_cipher->cipher.algo = (enum rte_crypto_cipher_algorithm)ret; xform_cipher->cipher.key.length = param->cipher_key_len; xform_cipher->cipher.key.data = param->cipher_key_buf; @@ -303,5 +303,5 @@ transform_chain_param(struct rte_crypto_sym_xform *xforms, if (unlikely(ret < 0)) return ret; - xform_auth->auth.algo = (uint32_t)ret; + xform_auth->auth.algo = (enum rte_crypto_auth_algorithm)ret; xform_auth->auth.digest_length = param->digest_len; xform_auth->auth.key.length = param->auth_key_len; -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-23 10:22:55.381234090 +0000 +++ 0043-vhost-crypto-fix-inferred-misuse-of-enum.patch 2018-11-23 10:22:54.000000000 +0000 @@ -1,14 +1,15 @@ -From d09328567e3212306b91d314a28214f81e0e9adf Mon Sep 17 00:00:00 2001 +From 758086d0110dc6d1a939ac7e8db78f192d78141b Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Thu, 1 Nov 2018 14:15:04 +0000 Subject: [PATCH] vhost/crypto: fix inferred misuse of enum +[ upstream commit d09328567e3212306b91d314a28214f81e0e9adf ] + Fix inffered misuse of enum rte_crypto_cipher_algorithm and rte_crypto_auth_algorithm Coverity issue: 277202 Fixes: e80a98708166 ("vhost/crypto: add session message handler") -Cc: stable@dpdk.org Signed-off-by: Fan Zhang Reviewed-by: Ferruh Yigit @@ -17,7 +18,7 @@ 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c -index 9811a232a..5472bead0 100644 +index 57341ef8f..1affeddfe 100644 --- a/lib/librte_vhost/vhost_crypto.c +++ b/lib/librte_vhost/vhost_crypto.c @@ -239,5 +239,5 @@ transform_cipher_param(struct rte_crypto_sym_xform *xform,