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 EA0AE43CAD for ; Thu, 14 Mar 2024 01:10:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4C6942E40; Thu, 14 Mar 2024 01:10:23 +0100 (CET) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mails.dpdk.org (Postfix) with ESMTP id 816264021E for ; Thu, 14 Mar 2024 01:10:22 +0100 (CET) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33e5978fc1bso142961f8f.3 for ; Wed, 13 Mar 2024 17:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710375022; x=1710979822; darn=dpdk.org; 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=bTYHAgXhqn9jNbLhwgY1JmrDvlOzn3elwdIzeMIQN/E=; b=Rv8SlYUCkO2yyVCiIZz2t5Csp3mgtQWAjLtLBb2PnWmFIzBBQihPAGMOxBNiCw9UL1 JixWV6/WAnfLgzX6Hdgd6Z6PobhyjALWQXuLSRiq2C1wU6BELHczUAdk0WrLE1hp5Del RzwV/tz08m3fkUXjn88OLPlHd3I5JlpjXVDYksm4lHBJHwWZrJuxJtJlBaOmzwIqP1v+ xnJsBD2eoXqSi6B7TV9Bnkpd/AnOCtS0VJfNo9MZfd0cnN0OTWGqWhqeCpvy7NSZEbLO YfKcSh2xpuUtErnrkUXNGpGQ23qGHwaeRpWmO3TRshXZZug2ufopZNl51QPeN9vX4Ikj bN/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710375022; x=1710979822; 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=bTYHAgXhqn9jNbLhwgY1JmrDvlOzn3elwdIzeMIQN/E=; b=dycktMLB/UGp4vueuQbek182s5fAZPOUlQjuuhgtYZ2FBliXiC+Dz7rHs6BAuHXdK1 bjlcR9pqD9M4TEFEhaZfDLeWUyYQiLiCol/Boj3B7wHVavfCuz3dsM30d9/kPTLLc+So c9FRJ5BIql5HozwqcDl8uB7ydVCcBgpQCeYKfRm1B8bGNAj3EsXdiAdR1llrgvKY3YtE S+sufKW4fmqbHdMyTvtpwBW/YFE+9DH5OnVm10M+7k92RGQKTb1mn57dd1Sb4BBE+veh vJFZBpBYXtAie+bxQkvm42WtpMax9/pdCAbTZAIRcRztFVyI4se5pTdi2gtWblUTU4wH a2Aw== X-Forwarded-Encrypted: i=1; AJvYcCWVXCIy02fuVLcM3TvncG6XxdTCfGNusFzgKzpJJ8QBPU2kUzz6h19hXZM93at7JxAixrD5lkiO0iIbq/6h974= X-Gm-Message-State: AOJu0YysDwpkbhf/KWfcpZhygeluPlB/3rcH87doxhgCmbL09XHysrnE 2HRvqnvfhmmA8OFsB0uS0XaglW+B8nfi+4awKmxr76THKfeX+t6T X-Google-Smtp-Source: AGHT+IEg1rKJe2+bQuUo7Djmfc9JUwlpSY77T6IvMeFtXO1uNXGOCfUbqVifUR22aaKp95tqt0Cj8Q== X-Received: by 2002:a05:6000:889:b0:33e:66d8:95c1 with SMTP id cs9-20020a056000088900b0033e66d895c1mr76803wrb.25.1710375022172; Wed, 13 Mar 2024 17:10:22 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:7aef:1aaa:3dff:d546]) by smtp.gmail.com with ESMTPSA id m17-20020a5d4a11000000b0033e8c50fc3fsm275977wrq.90.2024.03.13.17.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 17:10:21 -0700 (PDT) From: luca.boccassi@gmail.com To: Suanming Mou Cc: Akhil Goyal , dpdk stable Subject: patch 'app/crypto-perf: fix copy segment size' has been queued to stable release 22.11.5 Date: Thu, 14 Mar 2024 00:09:06 +0000 Message-Id: <20240314000957.2810803-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240314000957.2810803-1-luca.boccassi@gmail.com> References: <20240307013159.1735343-102-luca.boccassi@gmail.com> <20240314000957.2810803-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 22.11.5 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/16/24. 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/2e6e29e797de18b92ce7eed85b06dfa5d813c3b7 Thanks. Luca Boccassi --- >From 2e6e29e797de18b92ce7eed85b06dfa5d813c3b7 Mon Sep 17 00:00:00 2001 From: Suanming Mou Date: Wed, 3 Jan 2024 12:00:23 +0800 Subject: [PATCH] app/crypto-perf: fix copy segment size [ upstream commit 7c31d17f68f615c31811afa1830fa0e38956ffc4 ] For the case crypto device requires headroom and tailroom, the segment_sz in options also contains the headroom_sz and tailroom_sz, but mbuf's data_len is user's segment_sz without headroom_sz and tailroom_sz. That means the data size to be copied should use user's segment_sz instead of options->segment_sz. This commit fixes the copy segment size calculation. Fixes: 14864c4217ce ("test/crypto-perf: populate mbuf in latency test") Signed-off-by: Suanming Mou Acked-by: Akhil Goyal --- app/test-crypto-perf/cperf_test_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index b3bf9f67e8..dbb08588ee 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -268,7 +268,7 @@ cperf_mbuf_set(struct rte_mbuf *mbuf, const struct cperf_options *options, const struct cperf_test_vector *test_vector) { - uint32_t segment_sz = options->segment_sz; + uint32_t segment_sz = options->segment_sz - options->headroom_sz - options->tailroom_sz; uint8_t *mbuf_data; uint8_t *test_data; uint32_t remaining_bytes = options->max_buffer_size; -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-14 00:09:21.259336605 +0000 +++ 0010-app-crypto-perf-fix-copy-segment-size.patch 2024-03-14 00:09:20.573614427 +0000 @@ -1 +1 @@ -From 7c31d17f68f615c31811afa1830fa0e38956ffc4 Mon Sep 17 00:00:00 2001 +From 2e6e29e797de18b92ce7eed85b06dfa5d813c3b7 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7c31d17f68f615c31811afa1830fa0e38956ffc4 ] + @@ -16 +17,0 @@ -Cc: stable@dpdk.org