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 CA0B346B72 for ; Mon, 14 Jul 2025 17:13:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1E09400D5; Mon, 14 Jul 2025 17:13:16 +0200 (CEST) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mails.dpdk.org (Postfix) with ESMTP id 6F149400D5 for ; Mon, 14 Jul 2025 17:13:15 +0200 (CEST) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-45610582d07so11547495e9.0 for ; Mon, 14 Jul 2025 08:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752505995; x=1753110795; 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=v8MaiWT8WCQOk8RODJY/Aa2fTtI47++/XQm5IM1plHo=; b=cLXR/P/Y2EHnGvTUE20lW3mXr54T6jthOvklsZjiwpAge+le7rjDWhxH6YHy6EkVMg kBKu2pdfavU2il+HpAo9CG/cmCizDsHazhe+USOXNT/PlH9JoXhJccBNcisdyEJHPrmD S62SqSicE+cdvIWbYrSy2lzr77E2UuYa0iN1iB6KZUKE2djHVsRbchg4pfpgXtG5yItP 4921IAUYza9Fn5DJ8CB+THMLJCiSe6B22gQNU+IZctjDuzqtvsgUGXdeNvGnQc5mBpHN KFnCZVakIvWI1/RT0UN5a2La16vessGwOJIIftrEsVoDodNaE+gyKt0zgvo5AKeFAC11 7xcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752505995; x=1753110795; 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=v8MaiWT8WCQOk8RODJY/Aa2fTtI47++/XQm5IM1plHo=; b=qgKbwwPULfYsZu92I4A/BCeyliXxPKqBbBH1kvQhBUkAJ7/tu+Ao5Yne7hkaUzXOs4 toAUUOjVsKlBm3pxBcr6NQcorWfp2BiB88JyLz4vN5RrtHkkzREhFb1GOgyxSCYoWoo7 7aL6IZ4E6s/CgLmlMN/kM5e/NIXpeKfQZNCCcv5Cq3eVm1Jwk9SazkfRoZLdZB5mBmou 0mk+0UXVaXSEpGC8FF7Qh2jco9P+FLuNIG/xbZzZNdNOnCLoaAbvfeEAjETiW5eXIVxT glItCJsRNv3aYTKkVPjd0lv3NkWaini51NBVS1jK+S818kDdMrNkMoPpiCCBlESximwx ReFw== X-Gm-Message-State: AOJu0Yx/1jB0+VHT5cwCn1boW3Kf3tcwwKH9RfMrmN4VKTx4Txd4QCcI BouSP98V1G1VS8TOHSGBdEzZSiGMpF90QZy+UIZfB4dEte2qrmQc6UdSo+noJjmt X-Gm-Gg: ASbGncud3hBRshux7saEtCDB2tCqTgF3zgPGNcOf1YnNia3Hgk2iLrrh7MOes+438s1 scdqAtV4R9lRg+uHToXHmpGAl6eY13x4NV7AtIBoRcKLbPPMSfram0A4t56YFBOJYEvnG6LBsRs a5BDld7hdVR1giEUtUPRqXbWenEpxNpvyE6DhurDSF1ZYzEDSBeWvWxSK1CQJu1R8VNepYmOzWn bxgEL/s+cmHOpQTvogFIlbBf3hMdHsh6q/O1Yt9W7NB9JPySpDFve0dYxs6Zh9WnV2mc3Y4d17F rGJHyN0o6ik2l86eKrbM0xWtDk5TGFORu8zlVCXLul66d/O7oKxtbCBFHJIsTX1g46BAUBh6DLd 2luO/7tfQm2eT0lrSdRbN1/hPvm4D X-Google-Smtp-Source: AGHT+IHKR7MDyULjq8B7AXBfYf2QgAeIlEHKyhqR2h2xG3TXSOotbtT+anabFoZsJKOaGy06R5uEjg== X-Received: by 2002:a05:600c:4693:b0:456:496:2100 with SMTP id 5b1f17b1804b1-456049621efmr84501925e9.31.1752505994775; Mon, 14 Jul 2025 08:13:14 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:a923:75e5:f97f:ef33]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-45617f18d99sm43626085e9.8.2025.07.14.08.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jul 2025 08:13:14 -0700 (PDT) From: luca.boccassi@gmail.com To: Volodymyr Fialko Cc: dpdk stable Subject: patch 'examples/ipsec-secgw: fix number of queue pairs' has been queued to stable release 22.11.9 Date: Mon, 14 Jul 2025 16:11:16 +0100 Message-ID: <20250714151121.219866-21-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250714151121.219866-1-luca.boccassi@gmail.com> References: <20250630122556.1133654-23-luca.boccassi@gmail.com> <20250714151121.219866-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 07/16/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/2cbf69e493da0063b82c33e5c7967a5144c2c5bb Thanks. Luca Boccassi --- >From 2cbf69e493da0063b82c33e5c7967a5144c2c5bb Mon Sep 17 00:00:00 2001 From: Volodymyr Fialko Date: Wed, 9 Jul 2025 10:23:25 +0200 Subject: [PATCH] examples/ipsec-secgw: fix number of queue pairs [ upstream commit 7e6d6106a4ef052d6a2a6bd6e83c5b16a36c65c9 ] Fix a mismatch between the signature of the cryptodevs_init() function and the arguments passed to it during the call. This caused incorrect initialization of queue pairs in ipsec-secgw example. Fixes: 253265f8fb97 ("examples/ipsec-secgw: reduce queues for event lookaside") Signed-off-by: Volodymyr Fialko --- examples/ipsec-secgw/ipsec-secgw.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 849efbe755..f916e2a3e6 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -2961,16 +2961,7 @@ main(int32_t argc, char **argv) sess_sz = max_session_size(); - /* - * In event mode request minimum number of crypto queues - * to be reserved equal to number of ports. - */ - if (eh_conf->mode == EH_PKT_TRANSFER_MODE_EVENT) - nb_crypto_qp = rte_eth_dev_count_avail(); - else - nb_crypto_qp = 0; - - nb_crypto_qp = cryptodevs_init(nb_crypto_qp); + nb_crypto_qp = cryptodevs_init(eh_conf->mode); if (nb_bufs_in_pool == 0) { RTE_ETH_FOREACH_DEV(portid) { -- 2.47.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-07-14 16:09:41.475632244 +0100 +++ 0021-examples-ipsec-secgw-fix-number-of-queue-pairs.patch 2025-07-14 16:09:40.724449252 +0100 @@ -1 +1 @@ -From 7e6d6106a4ef052d6a2a6bd6e83c5b16a36c65c9 Mon Sep 17 00:00:00 2001 +From 2cbf69e493da0063b82c33e5c7967a5144c2c5bb Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7e6d6106a4ef052d6a2a6bd6e83c5b16a36c65c9 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 063cc8768e..fe489f9a56 100644 +index 849efbe755..f916e2a3e6 100644 @@ -22 +23 @@ -@@ -2994,16 +2994,7 @@ main(int32_t argc, char **argv) +@@ -2961,16 +2961,7 @@ main(int32_t argc, char **argv)