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 54A55468E4 for ; Thu, 12 Jun 2025 23:08:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E0DB42DD9; Thu, 12 Jun 2025 23:08:34 +0200 (CEST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mails.dpdk.org (Postfix) with ESMTP id 19E5642DD9 for ; Thu, 12 Jun 2025 23:08:33 +0200 (CEST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-442e9c00bf4so12448585e9.3 for ; Thu, 12 Jun 2025 14:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749762513; x=1750367313; 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=HOwY2LRbbKc9Dak31MgY6ANuJjx932MXXb9WqfRskVY=; b=TpW3kMJfWJP+MH4MscbmCetYVyit5Mkdx5ONz6TrarEb6KQQBecbSwsmJG9lv99zhI ln7Uqw5OpIxSjB6X+NN0DrCRjYRiA5/lQR8T+wizUagRvTnA5Aq4VZw3wJ2qEw3mbs+N yIcNSqHxXC8dqwbbhP9zkSM2KB2cpD9nRm5xsFjYz7azdJJ26MINCTnpZD3s4Yv8dcO3 8+IHp9FrhutskoZ3Sm6xNWbX3KfzvcM8IL9FheCQKEM5ce7j3T1ZttHe1p0WORE82LD/ a3wAxhp5mVfX6DEa7R2/jNBxXTzip3I0B3zrRimLEr9lc/pu3kRjFqpDUbG+T9tCtxQ3 U2Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749762513; x=1750367313; 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=HOwY2LRbbKc9Dak31MgY6ANuJjx932MXXb9WqfRskVY=; b=J09j/Db9tv0vQuzVZBIq4FOH/whb5jH4Bb+xjK/ia5l7j23HmbQIEG0Q0nmwJSHhA1 eCUzxZ/ehZVbAXoHXT2iTykJtM0AuDy4Vl9a30hEgpD4ExsNQU1mVKCYu7T5CP67DqUO TeEwENpJIL2+bXqCeFCZR8EkB5UVB+h7JH/HWZxaAu/NV82Qk+SNfBNPzsScnhqC/AiV JllKd7X+W98FsBrkrLG3csPe88ZDKhR+SFRWSOb7argcbvKE9JXF5JVhxKmU8QcUkhlS lG1vuInQmLNy2NglbG4r9tDk4MzNeNcwKxGzDAPjd+xK5QJetutYC4CRoTHOKVOT/+oK xOkg== X-Gm-Message-State: AOJu0Yzf595PFyKjj1qHGUYBr7FdJ82cRhfayUdFprUarGiI+XChZXZL 7ne6Z41Pdr991OjlNpx1oP6H96trRioHI+PgUkpAOXR2Gy7cQ3c0ESeYsUazBGY0 X-Gm-Gg: ASbGnctOkuAqv/2ee5Q9u81IRaLuZT+wPxAHZxXxQdkpWhcpfU161Od/27dzPTaKKQX tVwr6oOKoI1NXBIIVD2mzm+TKs2XWYOA48UWS0Dwf7Z4i5w1RHkOudXTPRlubPrue/Vk6jv6UoB 9T1i85CFAmEKIlQRb3H6jDszUhWM+taN7Hd1+/twmKdZOcGZPqBx3acJu2afJxQkD+H125C5p9w b2hoE9acdtXiPtzSUkTf8juwA3rZ+S06thY8lcb4W3yTWBVfXEq4QnErmFA3rnKBrVwMo1Hn/YD v1FqeIyA9j7qTWf8Os1xe7xzawwQlO+vueVyrDfVrRMWBfJqO3KewMWYU+Chp0psBrZy X-Google-Smtp-Source: AGHT+IEaaJgaWTOPHbiRuHIQiD1TZYBxn5qUxCWyPumfMyJKDfQJOjUTWUpDFdySqLVqHWp0OBa6bg== X-Received: by 2002:a05:600c:8b58:b0:44a:b793:9e4f with SMTP id 5b1f17b1804b1-45334ae6512mr5174725e9.19.1749762512533; Thu, 12 Jun 2025 14:08:32 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:f2df:571a:ae4c:bef2]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4532de8c4e8sm32093835e9.3.2025.06.12.14.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jun 2025 14:08:32 -0700 (PDT) From: luca.boccassi@gmail.com To: Shani Peretz Cc: dpdk stable Subject: patch 'app/crypto-perf: fix AAD offset alignment' has been queued to stable release 22.11.9 Date: Thu, 12 Jun 2025 22:06:33 +0100 Message-ID: <20250612210733.2506558-16-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250612210733.2506558-1-luca.boccassi@gmail.com> References: <20250612210733.2506558-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.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/14/25. 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/f6a0e5020282eb283fab3dfe5b6a8d642d2c7807 Thanks. Luca Boccassi --- >From f6a0e5020282eb283fab3dfe5b6a8d642d2c7807 Mon Sep 17 00:00:00 2001 From: Shani Peretz Date: Tue, 11 Mar 2025 11:01:21 +0200 Subject: [PATCH] app/crypto-perf: fix AAD offset alignment [ upstream commit 7c52aea4e68e0cacc7e41ff08fcddbd513ad7e0a ] AAD offset in AES-GCM crypto test was calculated by adding 16-byte alignment after the IV, which is only needed in AES-CCM. The patch correct the AAD offset calculation in AES-GCM algorithm tests. Fixes: 0b242422d385 ("app/crypto-perf: set AAD after the crypto operation") Signed-off-by: Shani Peretz --- app/test-crypto-perf/cperf_ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c index 6bbab3289e..c655101ac7 100644 --- a/app/test-crypto-perf/cperf_ops.c +++ b/app/test-crypto-perf/cperf_ops.c @@ -535,7 +535,9 @@ cperf_set_ops_aead(struct rte_crypto_op **ops, uint16_t i; /* AAD is placed after the IV */ uint16_t aad_offset = iv_offset + - RTE_ALIGN_CEIL(test_vector->aead_iv.length, 16); + ((options->aead_algo == RTE_CRYPTO_AEAD_AES_CCM) ? + RTE_ALIGN_CEIL(test_vector->aead_iv.length, 16) : + test_vector->aead_iv.length); for (i = 0; i < nb_ops; i++) { struct rte_crypto_sym_op *sym_op = ops[i]->sym; -- 2.47.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-06-12 22:06:24.490831274 +0100 +++ 0016-app-crypto-perf-fix-AAD-offset-alignment.patch 2025-06-12 22:06:23.806043286 +0100 @@ -1 +1 @@ -From 7c52aea4e68e0cacc7e41ff08fcddbd513ad7e0a Mon Sep 17 00:00:00 2001 +From f6a0e5020282eb283fab3dfe5b6a8d642d2c7807 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7c52aea4e68e0cacc7e41ff08fcddbd513ad7e0a ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 37d06f1dea..47965bbc32 100644 +index 6bbab3289e..c655101ac7 100644 @@ -23 +24 @@ -@@ -722,7 +722,9 @@ cperf_set_ops_aead(struct rte_crypto_op **ops, +@@ -535,7 +535,9 @@ cperf_set_ops_aead(struct rte_crypto_op **ops,