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 B559B41D8C for ; Mon, 27 Feb 2023 08:02:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B1F8341140; Mon, 27 Feb 2023 08:02:18 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2085.outbound.protection.outlook.com [40.107.93.85]) by mails.dpdk.org (Postfix) with ESMTP id 3C77E40A84 for ; Mon, 27 Feb 2023 08:02:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F+3xbHym2HPCDtnaejC4KpHs2VmcxHIukqwJRlXCgS43eq4UbqLcfHAQBMfBlol3KTNFJo/5DOa0yYA0jDcFwGTSDlbOj8foB+grtH2l6PlT2wnGBEm4j0Ly7pwE04ZWoWgvUDqVQatxDj4b80ML4jdF+iwWJdM4PTNhr/xPtoCDeJcNtP0jadTDj+noB8rlsc0Hfqx75ukPsPmdnb6L8BscOXKN0BcZ8YLPeQOfj2z8XTGuiAvh2oELGkvTCp6CERwS65xu2in1XSpZPupnxTJfFG6zJ5rbZtQTPXoEGz9WHNkv7DJVzDLVNa9OO+VDsRXcsntx6m3dhB2oToN2yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aQpbGuOAQ+PtrYcX25Fcc988l/gR15OA5DHYbmlXfP0=; b=NIYkiMK9oFt/sfjicXS5axavi5E+s2/q+0zQOOlRCr1zJSSdt6TM4JsU5a4anUA9R9+4I7wqphM63qsV1UO9pCpOa8uagh2AaWcZ5U6XY66dkVxd71Qv9hENxDEMsKaeaNPrOCV3U86vsAnoNcvijzVkUbX9uFZir6c/DRiEAMWhyfWLav2OF41TIpiEjIWWvfAt6X53ugTITo2KVAXA30DGLGh4wUdemsBdoL17TmbcDXtJTxWfG085nYqtueaWmFqE+K/IKQXlzHkDyyK2Vr5acqHED+NPU8ox/bovARIu8KDYaIEZ9Szov2R0AZQsHgyBSMkyF3sQskSDY9WZgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aQpbGuOAQ+PtrYcX25Fcc988l/gR15OA5DHYbmlXfP0=; b=Nzik5qU5aTiHZljEdTtewd2FUTTxf+T+tNhwxjXDk2foSB38/bKuiQDli0ojJsyQNBkXF+/eXdVU77QAqBHZjKOgFoaZKNXfLGRMblAnXfs6mIEEST3UGwgEfcUNY2aNBxpbfkSF1gwCbZMRRj1vwY1fu5borCfka0bvrT2sHEZd+kRu6zoeGA+KOWsVkWZolzhO+ckIS/r7fvjAV0OYyEudpd+Ve4U8pTqQuqDCkAf9DYk1aH7cqKh86IB9m3iwLRSkgHHme7jgZ7ytc0q+cqtywZpN27GRXsEQ8HMLBTJtoIO+N1ZI4RNVz8lyUdcGuQ1Bb9vyqXP17tHwZD+jDw== Received: from MN2PR16CA0027.namprd16.prod.outlook.com (2603:10b6:208:134::40) by LV2PR12MB5846.namprd12.prod.outlook.com (2603:10b6:408:175::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:02:15 +0000 Received: from BL02EPF000108E9.namprd05.prod.outlook.com (2603:10b6:208:134:cafe::3e) by MN2PR16CA0027.outlook.office365.com (2603:10b6:208:134::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:02:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF000108E9.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:02:14 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:02:03 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:02:00 -0800 From: Xueming Li To: Anoob Joseph CC: Akhil Goyal , dpdk stable Subject: patch 'app/crypto-perf: fix number of segments' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:58:36 +0800 Message-ID: <20230227070107.15664-8-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108E9:EE_|LV2PR12MB5846:EE_ X-MS-Office365-Filtering-Correlation-Id: e2e8764a-c063-46ee-2b64-08db18908eb6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rk2Nedn1fBh5H2h7pmhF+yps1JU2GvgaeBAXnOkmjqP+uwYBMjS3ChzwijoyYYsUIqXHBXtYdVHiWnNdvPFh1b+WayKmZkwxuBTGY72GLei3RXUq/9mPAYT1phIsC2WbpDdDj/wo6duZpb/OSEQQlQZwgkoKmTJpwAKBuQ8xo96MRjqywLcBgPzCwetF5YdyB8MCocwDHiVJeC+6irxLxVAVyW/820UhhjiLfFylVz9I33KCOTvzkWcGdJ5gWm/HsKb012+g1iXSwIUVGdyJO2xlwwgGcYPtYSRVW49cScex6lqTo2/k55TL3OBCBW5oZUokDGw9K1wZjlrcXNZNosDRigEKxFZouoIUG/uIET5ylC7HDOs062gvuI01n+9kymMCQXZW3OPmDHx0Kxvk33vc9zp/2bdKU7rZRs2WK5i4ruI8OO0a4R6Nd+r4zcqvD1RgxG+4zFUPynySqUVAA80Mr/mXgjALpG8V4zLFYZyTCTfaif2SnCIREU/j5CpM/4WdRtJSTxODT4loNH53tOg0DgTAsUqLI/fj27uetXonmlOPglPzXa76INvEKXImemCOGEvKGoNtt2U63agmlErc8pKEWOvlblDl9ZxkH7ZFY2GjJp/mNnZSBfdttZMOt6gyHZLgLZQm/ugnz9isVlbjCP1EauMdF7AE1busFy+AReqbsDrv90A6GYXtZyq40Ksv7qrCkIEv86zrEQ4PXysO+L5LmxKfF/ixiZVz7Xj9JZgDXGuT33qlplvOpeHUCQ3RM85i14xOYMvP3R3pGRns5JMmd/qwYM8F0+nsj0g= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(376002)(39860400002)(136003)(396003)(346002)(451199018)(40470700004)(36840700001)(46966006)(2616005)(966005)(36756003)(82310400005)(86362001)(54906003)(186003)(16526019)(6286002)(40460700003)(2906002)(36860700001)(5660300002)(4326008)(8936002)(6916009)(8676002)(70586007)(70206006)(41300700001)(1076003)(26005)(47076005)(426003)(478600001)(53546011)(6666004)(336012)(55016003)(40480700001)(7696005)(7636003)(356005)(83380400001)(82740400003)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:02:14.9686 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2e8764a-c063-46ee-2b64-08db18908eb6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF000108E9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5846 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 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=a932cd545f38484c3cbb3e222c9f4dfd1e1f3b24 Thanks. Xueming Li --- >From a932cd545f38484c3cbb3e222c9f4dfd1e1f3b24 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 Cc: Xueming Li [ 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 27646cd619..932aab16df 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -197,9 +197,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.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:41.290388200 +0800 +++ 0009-app-crypto-perf-fix-number-of-segments.patch 2023-02-27 14:08:40.719237000 +0800 @@ -1 +1 @@ -From e03ecc56edd72acb077e2b9bb95ae34f54172a0c Mon Sep 17 00:00:00 2001 +From a932cd545f38484c3cbb3e222c9f4dfd1e1f3b24 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit e03ecc56edd72acb077e2b9bb95ae34f54172a0c ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org