From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D132AA0518 for ; Fri, 24 Jul 2020 14:06:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6A2D1C0C6; Fri, 24 Jul 2020 14:06:53 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id A66C61C127 for ; Fri, 24 Jul 2020 14:06:52 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id f2so8076853wrp.7 for ; Fri, 24 Jul 2020 05:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f5/CkmhTES8D8WTqEa21/aw6qwugXWv3B83N1zmIaBw=; b=joNdlaj/m2b1/4DHTpAE2yaqxLvUc2rTUn4f2mw7cJHPAxuofrCjrx5WGEP06a4+el kLdVkxLbw/cwJ+AlGf0FFzXmlvbt/HLU6po9zMmYYZFOTDH6A8oxVSguFlpuQoHskxPC S2xCGSgLQ30GQFwId3UcZmYVx11evSiUQE7ncNlED7zkpvqYsg1M2QGY1ahxvauENTqL Dc3Cq2t48zA7m0pXXe7XaXAXzk/ejV6YP7+xKaddVGDodssHoqpQF1mvC2MCR81WtwQV YhKEYoxHfnysSh3RlBr1nskvO05T0cK+VfQuDZb3wc1cg8h+0llsXHoh6dyu+BbK1qqd 2qgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f5/CkmhTES8D8WTqEa21/aw6qwugXWv3B83N1zmIaBw=; b=WTE8TJ+knUiBZklRxEy2tR2C53ZIsFUADp+3eGe+5ZDcdGKcqWVX+XiW6hPSOajDh4 KsCJsJTnGaZAAC7dzFJAiM0L4eMLmEqGnn7b6tuBuX4C8VyLJStAYS1bgMtTksHK1OQ4 yF5uqYFJvQIYCN3hqpPgeJ+g/GNix6qyOuA6kvSLVSXw8jIJADIw5pzyVOjErLSIomcp paOJk42Cj8EbvBaUV+/1yOAHbc2KN5tZfAVMb8EONzvSD/E06cgLgy8pMDZ4ubEx362V rBAj1TEKZyDgBciAZMzRieHv/y/ig8A0/6gmo8M3L2bRgwUx0ytWrx26KIQzxQJLRKjj p1rA== X-Gm-Message-State: AOAM530Zm6iQWXn4+LABS+O9oBihBVM69BuOgh0c/vVBn/anMF0dwoHV PuBsjPRuh3NyuGcNkZbdt5I= X-Google-Smtp-Source: ABdhPJw22XLwt7CzFlQMjvSo/oTkzmMRTWKkdLiRCk3ouduVlJUJraQreY8ygwHZ0cWyopWDAyFwwQ== X-Received: by 2002:a5d:4984:: with SMTP id r4mr8263171wrq.401.1595592412412; Fri, 24 Jul 2020 05:06:52 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id f186sm6812233wmf.29.2020.07.24.05.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:06:51 -0700 (PDT) From: luca.boccassi@gmail.com To: Adam Dybkowski Cc: Fiona Trahe , Akhil Goyal , dpdk stable Date: Fri, 24 Jul 2020 12:58:51 +0100 Message-Id: <20200724120030.1863487-93-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724120030.1863487-1-luca.boccassi@gmail.com> References: <20200724120030.1863487-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'test/crypto: fix asymmetric session mempool creation' has been queued to stable release 19.11.4 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/26/20. 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. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 656aac2d399dbcdd5ed0bbc4f2311324236d2550 Mon Sep 17 00:00:00 2001 From: Adam Dybkowski Date: Mon, 8 Jun 2020 15:15:01 +0200 Subject: [PATCH] test/crypto: fix asymmetric session mempool creation [ upstream commit 0ad83afdf3352e5e61e8c137131524ee6b2506ce ] This patch fixes the element size of the mempool used for allocating asym crypto sessions and their private data. Fixes: 2c6dab9cd93d ("test/crypto: add RSA and Mod tests") Signed-off-by: Adam Dybkowski Acked-by: Fiona Trahe Acked-by: Akhil Goyal --- app/test/test_cryptodev_asym.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index 69df29304..a0802994f 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -933,8 +933,9 @@ testsuite_setup(void) } /* setup asym session pool */ - unsigned int session_size = - rte_cryptodev_asym_get_private_session_size(dev_id); + unsigned int session_size = RTE_MAX( + rte_cryptodev_asym_get_private_session_size(dev_id), + rte_cryptodev_asym_get_header_session_size()); /* * Create mempool with TEST_NUM_SESSIONS * 2, * to include the session headers -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-24 12:53:52.127793508 +0100 +++ 0093-test-crypto-fix-asymmetric-session-mempool-creation.patch 2020-07-24 12:53:48.319007056 +0100 @@ -1,13 +1,14 @@ -From 0ad83afdf3352e5e61e8c137131524ee6b2506ce Mon Sep 17 00:00:00 2001 +From 656aac2d399dbcdd5ed0bbc4f2311324236d2550 Mon Sep 17 00:00:00 2001 From: Adam Dybkowski Date: Mon, 8 Jun 2020 15:15:01 +0200 Subject: [PATCH] test/crypto: fix asymmetric session mempool creation +[ upstream commit 0ad83afdf3352e5e61e8c137131524ee6b2506ce ] + This patch fixes the element size of the mempool used for allocating asym crypto sessions and their private data. Fixes: 2c6dab9cd93d ("test/crypto: add RSA and Mod tests") -Cc: stable@dpdk.org Signed-off-by: Adam Dybkowski Acked-by: Fiona Trahe @@ -17,10 +18,10 @@ 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c -index b8e050048..dc62ed7bf 100644 +index 69df29304..a0802994f 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c -@@ -935,8 +935,9 @@ testsuite_setup(void) +@@ -933,8 +933,9 @@ testsuite_setup(void) } /* setup asym session pool */