From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8C0BB41D52 for ; Thu, 23 Feb 2023 16:07:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87ED24322E; Thu, 23 Feb 2023 16:07:07 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 814B343230 for ; Thu, 23 Feb 2023 16:07:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677164826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8/AqvmjF32VbomJjEvhSgVjf/BeGQo0BWYwCaBvJmo8=; b=StKLU3MpE1GFhZfmvaVszw4zwecmHWLBiLd73RZoCKZGW5GINikOBITeFeKwcQK4QVcXCS PgxhEiJzT4mXxpRJ/22GW8gC7Xi98i5xLWKX8TjwpNaNg1JH6nxESKmFdua/6f23Tu0/tN kin9bDwYFkmzag8wzVi7pCmUvxLAfS0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-435-B-NxktauNU-4X8WpvbNOcw-1; Thu, 23 Feb 2023 10:07:03 -0500 X-MC-Unique: B-NxktauNU-4X8WpvbNOcw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 49DDB85A5B1; Thu, 23 Feb 2023 15:06:57 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.192.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 85E012166B29; Thu, 23 Feb 2023 15:06:56 +0000 (UTC) From: Kevin Traynor To: Anoob Joseph Cc: Akhil Goyal , dpdk stable Subject: patch 'app/crypto-perf: fix number of segments' has been queued to stable release 21.11.4 Date: Thu, 23 Feb 2023 15:04:56 +0000 Message-Id: <20230223150631.723699-5-ktraynor@redhat.com> In-Reply-To: <20230223150631.723699-1-ktraynor@redhat.com> References: <20230223150631.723699-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 21.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 02/28/23. 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. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/d734fcf15cda3727a9c88f232d77a9fcd3dbc3a4 Thanks. Kevin --- >From d734fcf15cda3727a9c88f232d77a9fcd3dbc3a4 Mon Sep 17 00:00:00 2001 From: Anoob Joseph Date: Tue, 20 Dec 2022 10:25:33 +0530 Subject: [PATCH] app/crypto-perf: fix number of segments [ upstream commit e03ecc56edd72acb077e2b9bb95ae34f54172a0c ] When segment size is provided, the total number of segments would be calculated. Segment size updates due to headroom/tailroom need to be accounted for when determining total number of segments required. Fixes: c1670ae0022b ("app/crypto-perf: honour min headroom/tailroom") Signed-off-by: Anoob Joseph Signed-off-by: Akhil Goyal --- app/test-crypto-perf/cperf_test_common.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index 97a1ea47ad..5a65e11ba7 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -199,7 +199,9 @@ cperf_alloc_common_memory(const struct cperf_options *options, uint32_t mbuf_size = sizeof(struct rte_mbuf) + options->segment_sz; uint32_t max_size = options->max_buffer_size + options->digest_sz; - uint16_t segments_nb = (max_size % options->segment_sz) ? - (max_size / options->segment_sz) + 1 : - max_size / options->segment_sz; + uint32_t segment_data_len = options->segment_sz - options->headroom_sz - + options->tailroom_sz; + uint16_t segments_nb = (max_size % segment_data_len) ? + (max_size / segment_data_len) + 1 : + (max_size / segment_data_len); uint32_t obj_size = crypto_op_total_size_padded + (mbuf_size * segments_nb); -- 2.39.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-23 14:46:23.994910479 +0000 +++ 0005-app-crypto-perf-fix-number-of-segments.patch 2023-02-23 14:46:23.698235715 +0000 @@ -1 +1 @@ -From e03ecc56edd72acb077e2b9bb95ae34f54172a0c Mon Sep 17 00:00:00 2001 +From d734fcf15cda3727a9c88f232d77a9fcd3dbc3a4 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit e03ecc56edd72acb077e2b9bb95ae34f54172a0c ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 27646cd619..932aab16df 100644 +index 97a1ea47ad..5a65e11ba7 100644 @@ -23 +24 @@ -@@ -198,7 +198,9 @@ cperf_alloc_common_memory(const struct cperf_options *options, +@@ -199,7 +199,9 @@ cperf_alloc_common_memory(const struct cperf_options *options,