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 86CD241D4F for ; Thu, 23 Feb 2023 10:37:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82FA24317F; Thu, 23 Feb 2023 10:37:30 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 3F938427E9 for ; Thu, 23 Feb 2023 10:37:29 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id az11-20020a05600c600b00b003dc4fd6e61dso9490082wmb.5 for ; Thu, 23 Feb 2023 01:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H0kKl9JGYk3mRBj3VuZa3XZsaUl0zVlA0iGEgxKLHCI=; b=M4dnKPJmG7OpMQTvLNofNRs3lh7gewMzW4wgVm7iBk7TXnf1odpgP8Gh09O/WEo7+4 MRdzptZrlyaKkuD05tK0YpZdWyIOCXxp7zxlXmmGaxKr3ak1HnbR2Ve00iK26oMbNq4l 8wPQtJ4T8k++YteQI8rCbc34HK1CxH/wb0VtLStBZLw4M4GSLVoyVqQaN1cFbPow+6Rj 3ezhAQYJyd46YgKrTkew/SjRbWZoEAKSjq+X0GoAhPbdywgTajraHbDP4yU/4+Z8Y94A HU/LDNbc9955U1SmKk5kFUSoNHaLJAxBtA1qQCBk4hIWkc37NF+R9XajhNbWNC8ihOUt nIRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H0kKl9JGYk3mRBj3VuZa3XZsaUl0zVlA0iGEgxKLHCI=; b=a1GOvqMoYymYp8nsWQzqvQS9YGt3ZvD2hlkwHPImePh09r8fXKBYgyTOy80xA2QHiK bsbTkxp8OeFcnX0Uz5ub0Nt28TCCo+AO8OIYqCRPR2IYWS7ZuY5tRDYWbu1X90zzdPhZ TV+4iMDT3EF45fDJ+Ikt+jNyUeYBvZdCe5MuzvHdjjDv25Di1DIADREFeXYi3PRz3lkF I60B905pFDUO78gXVK0I3AKIVA4FAGRxPpf/4uAu3HM03GWj4vLo2R6UR+oyciQyacyG qrXO4mgbwhN7EY9MMjdlovBwPjn5z0GpzDXFF74KEvvA6DRKA67RCe/5VOxZAUq5HAOH fNGw== X-Gm-Message-State: AO0yUKX2bathk3RkPMH8WN6kewjEzQN7ntbyj3gKCt8aFHCk6wMmjL19 hd55d8++hF0BvOfLcD4nxV6BqFNCT0I= X-Google-Smtp-Source: AK7set8pol0NIazhWne1Jw70QiFeyFg05ByIEo6ChqHikvsKWq5fMTC0Sw3q0KxPIaoZXfShhGictA== X-Received: by 2002:a05:600c:6001:b0:3e7:772d:22de with SMTP id az1-20020a05600c600100b003e7772d22demr6737607wmb.30.1677145048877; Thu, 23 Feb 2023 01:37:28 -0800 (PST) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id u7-20020a05600c19c700b003e21f20b646sm12425758wmq.21.2023.02.23.01.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 01:37:28 -0800 (PST) From: luca.boccassi@gmail.com To: Anoob Joseph Cc: Akhil Goyal , dpdk stable Subject: patch 'app/crypto-perf: fix number of segments' has been queued to stable release 20.11.8 Date: Thu, 23 Feb 2023 09:36:09 +0000 Message-Id: <20230223093715.3926893-5-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223093715.3926893-1-luca.boccassi@gmail.com> References: <20230223093715.3926893-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 20.11.8 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/25/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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/f500d1f0f42a9705a14814ee3f03bd286e9627c9 Thanks. Luca Boccassi --- >From f500d1f0f42a9705a14814ee3f03bd286e9627c9 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 12925c7f22..58bc2439ed 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -166,9 +166,11 @@ cperf_alloc_common_memory(const struct cperf_options *options, RTE_CACHE_LINE_ROUNDUP(crypto_op_total_size); 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 09:36:28.523871539 +0000 +++ 0005-app-crypto-perf-fix-number-of-segments.patch 2023-02-23 09:36:28.166168835 +0000 @@ -1 +1 @@ -From e03ecc56edd72acb077e2b9bb95ae34f54172a0c Mon Sep 17 00:00:00 2001 +From f500d1f0f42a9705a14814ee3f03bd286e9627c9 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 12925c7f22..58bc2439ed 100644 @@ -23 +24 @@ -@@ -197,9 +197,11 @@ cperf_alloc_common_memory(const struct cperf_options *options, +@@ -166,9 +166,11 @@ cperf_alloc_common_memory(const struct cperf_options *options,