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 D5CB51B49A for ; Thu, 22 Nov 2018 17:51:23 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D5E3A08F0; Thu, 22 Nov 2018 16:51:23 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.36.118.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D6EB84F7; Thu, 22 Nov 2018 16:51:21 +0000 (UTC) From: Kevin Traynor To: Junxiao Shi Cc: Akhil Goyal , dpdk stable Date: Thu, 22 Nov 2018 16:48:56 +0000 Message-Id: <20181122164957.13003-4-ktraynor@redhat.com> In-Reply-To: <20181122164957.13003-1-ktraynor@redhat.com> References: <20181122164957.13003-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 22 Nov 2018 16:51:23 +0000 (UTC) Subject: [dpdk-stable] patch 'cryptodev: fix pool element size for undefined operation' 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: Thu, 22 Nov 2018 16:51:24 -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/28/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 e8d3f97faebeb8966794354f2b095aae84552c8e Mon Sep 17 00:00:00 2001 From: Junxiao Shi Date: Tue, 9 Oct 2018 10:16:23 -0400 Subject: [PATCH] cryptodev: fix pool element size for undefined operation [ upstream commit f49d7e9a99477c00c1f666e999dc62a0f73e5db3 ] The documentation of rte_crypto_op_pool_create indicates that specifying RTE_CRYPTO_OP_TYPE_UNDEFINED would create a pool that supports all operation types. This change makes the code consistent with documentation. Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented") Signed-off-by: Junxiao Shi Acked-by: Akhil Goyal --- lib/librte_cryptodev/rte_cryptodev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 63ae23f00..608323fdd 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -1478,4 +1478,7 @@ rte_crypto_op_pool_create(const char *name, enum rte_crypto_op_type type, } else if (type == RTE_CRYPTO_OP_TYPE_ASYMMETRIC) { elt_size += sizeof(struct rte_crypto_asym_op); + } else if (type == RTE_CRYPTO_OP_TYPE_UNDEFINED) { + elt_size += RTE_MAX(sizeof(struct rte_crypto_sym_op), + sizeof(struct rte_crypto_asym_op)); } else { CDEV_LOG_ERR("Invalid op_type\n"); -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-22 16:47:32.383210946 +0000 +++ 0004-cryptodev-fix-pool-element-size-for-undefined-operat.patch 2018-11-22 16:47:32.000000000 +0000 @@ -1,15 +1,16 @@ -From f49d7e9a99477c00c1f666e999dc62a0f73e5db3 Mon Sep 17 00:00:00 2001 +From e8d3f97faebeb8966794354f2b095aae84552c8e Mon Sep 17 00:00:00 2001 From: Junxiao Shi Date: Tue, 9 Oct 2018 10:16:23 -0400 Subject: [PATCH] cryptodev: fix pool element size for undefined operation +[ upstream commit f49d7e9a99477c00c1f666e999dc62a0f73e5db3 ] + The documentation of rte_crypto_op_pool_create indicates that specifying RTE_CRYPTO_OP_TYPE_UNDEFINED would create a pool that supports all operation types. This change makes the code consistent with documentation. Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented") -Cc: stable@dpdk.org Signed-off-by: Junxiao Shi Acked-by: Akhil Goyal