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 EEE7F46364 for ; Fri, 7 Mar 2025 13:25:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5E2640E34; Fri, 7 Mar 2025 13:25:42 +0100 (CET) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mails.dpdk.org (Postfix) with ESMTP id 723E64029E for ; Fri, 7 Mar 2025 13:25:41 +0100 (CET) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-438a39e659cso10174045e9.2 for ; Fri, 07 Mar 2025 04:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741350341; x=1741955141; 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=CJSjjwJGP7/KiEyVg20HTbA/n7gYlo7v0Obh312Hkew=; b=YfP3BjXS6JU6B7gg/L9fsJril+h+4zVzso7xbhB8uBUonE8OFumOTfhLyFRAFXZxVo v4LuE2eS8bu4KoMdwr6mC9PxhbfO5gfktcqfMhP07SfrB9hd1UaiNtBR/W6hiEO9T3eX oYfB1mD1DteWHGHRb87SKuvOVdsCBaXDIV4SuSPG3HOH3sWP4k2H5SODZ2pTtlbQGW5s vBxtHRUtP3/SWOqA0uHy4zeb+oEdgXe3mt1rrKzK1b7JmGjpcSP0f21C528VG7d3rlhC wAvNqCwg+GSmbaMwMOE+i+Uz/53pOWV5T97w3q5IMpL+WAFW09/XEtz2HafZPbA3JZ75 +/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741350341; x=1741955141; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message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3KShcN4PLwXKKP60IM3T04Xrn+FGuSnWbP7xTKw== X-Received: by 2002:a05:600c:5103:b0:43b:dcaf:1664 with SMTP id 5b1f17b1804b1-43c601cdaffmr26925935e9.5.1741350340840; Fri, 07 Mar 2025 04:25:40 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:ff31:f049:bd38:f7cf]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3912c0195bfsm5156750f8f.48.2025.03.07.04.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 04:25:40 -0800 (PST) From: luca.boccassi@gmail.com To: Nithinsen Kaithakadan Cc: Anoob Joseph , Akhil Goyal , dpdk stable Subject: patch 'examples/ipsec-secgw: fix IV length in CTR 192/256' has been queued to stable release 22.11.8 Date: Fri, 7 Mar 2025 12:24:21 +0000 Message-ID: <20250307122431.1415551-22-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250307122431.1415551-1-luca.boccassi@gmail.com> References: <20250217170456.1068278-79-luca.boccassi@gmail.com> <20250307122431.1415551-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.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 03/09/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/818ae99bdfacbee05b8dcef2fd697ec5e948c736 Thanks. Luca Boccassi --- >From 818ae99bdfacbee05b8dcef2fd697ec5e948c736 Mon Sep 17 00:00:00 2001 From: Nithinsen Kaithakadan Date: Fri, 7 Feb 2025 13:45:43 +0000 Subject: [PATCH] examples/ipsec-secgw: fix IV length in CTR 192/256 [ upstream commit 7e2a7c336737084d8d8ef89260e511ff5670edbf ] This patch fixes IV length to 8 in case of AES-CTR 192/256. AES-CTR IV length is set 8 in SA config as it is used for per packet IV length and set it to 16 in xform since the application populates 16B IV in the datapath. AES-CTR requires 16B IV constructed from nonce and counter. Fixes: 9413c3901f31 ("examples/ipsec-secgw: support additional algorithms") Signed-off-by: Nithinsen Kaithakadan Acked-by: Anoob Joseph Acked-by: Akhil Goyal --- .mailmap | 1 + examples/ipsec-secgw/sa.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index 30b07d12a3..b4cce78ea6 100644 --- a/.mailmap +++ b/.mailmap @@ -1019,6 +1019,7 @@ Nipun Gupta Nir Efrati Nirmoy Das Nithin Dabilpuram +Nithinsen Kaithakadan Nitin Saxena Nitzan Weller Noa Ezra diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 45cd29f18b..ba71fc97aa 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -103,14 +103,14 @@ const struct supported_cipher_algo cipher_algos[] = { { .keyword = "aes-192-ctr", .algo = RTE_CRYPTO_CIPHER_AES_CTR, - .iv_len = 16, + .iv_len = 8, .block_size = 16, .key_len = 28 }, { .keyword = "aes-256-ctr", .algo = RTE_CRYPTO_CIPHER_AES_CTR, - .iv_len = 16, + .iv_len = 8, .block_size = 16, .key_len = 36 }, -- 2.47.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-03-07 12:23:38.824367288 +0000 +++ 0022-examples-ipsec-secgw-fix-IV-length-in-CTR-192-256.patch 2025-03-07 12:23:38.026838877 +0000 @@ -1 +1 @@ -From 7e2a7c336737084d8d8ef89260e511ff5670edbf Mon Sep 17 00:00:00 2001 +From 818ae99bdfacbee05b8dcef2fd697ec5e948c736 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7e2a7c336737084d8d8ef89260e511ff5670edbf ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -25 +26 @@ -index b3ffe83f46..b8c482d0e5 100644 +index 30b07d12a3..b4cce78ea6 100644 @@ -28 +29,2 @@ -@@ -1119,6 +1119,7 @@ Nir Efrati +@@ -1019,6 +1019,7 @@ Nipun Gupta + Nir Efrati @@ -30 +31,0 @@ - Nishikant Nayak @@ -35 +36 @@ - Nizan Zorea + Noa Ezra @@ -37 +38 @@ -index 425bfbf590..313919b4b5 100644 +index 45cd29f18b..ba71fc97aa 100644 @@ -40 +41 @@ -@@ -104,14 +104,14 @@ const struct supported_cipher_algo cipher_algos[] = { +@@ -103,14 +103,14 @@ const struct supported_cipher_algo cipher_algos[] = {