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 E2552454E9 for ; Tue, 25 Jun 2024 02:02:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE70042790; Tue, 25 Jun 2024 02:02:37 +0200 (CEST) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id 5F5CB4275C for ; Tue, 25 Jun 2024 02:02:35 +0200 (CEST) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42249a4f9e4so37375475e9.2 for ; Mon, 24 Jun 2024 17:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719273755; x=1719878555; 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=u1RjyxJkcZtf7sxnUgJT051jh/RA0TBr2DiBwI0m1Xo=; b=MgbFoTrG7KA+GqOsBbDDx/B0OMUxCcMh6oZME8EQASIgyRICh0RSvbyBSt043zRog+ ExJU2thtE3xhTRElyZ2Gk8ScAnsaHIo286N9Tb69WJVSy3ZMiaO307BxkmrswR5QJsxH UBOahlAcjmHKBnsWmaB99hcNuXgJ5aKa6cwVeyOqzTP6tmXZOORqt++2UMbc3vcZRSIg zOJtBPnJllTEkm5cPT8GpmEAMvxLX1QeLgD6E1xJwDaENNHV/jtNzzDDrQLWHWhTAmOI Oa+kBm9SdXlE5wlY2LKAjaSixQ0Fis9LrsqMY8ySh0l6Mn7rPQ9X3ukJwBduYgwSnmkJ hxLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273755; x=1719878555; 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=u1RjyxJkcZtf7sxnUgJT051jh/RA0TBr2DiBwI0m1Xo=; b=F32RalrrVoaJLutAVrqJb1uFFy0ID52tdy7UZaQwl1dwCgrQ7SK0rvsxOKEd3IalCA zYzzIcECGANDnHbXLqerwAm7eaQIlnisKsxdsccEamQbsgmCR+DcfJv76AG2Rt4jPwCu +hw3myac3CZcP8Myv/6QnWzGOa2CFHtLPZx1QlBP4z/vvqeU5/ZGsouE6GGFlLm4E8FZ hhevyDb40CJbZQGnDMdV5KwkUTLFQnAaP7orS45xiME/d9ov7YPm+02p6dFKPDU/cjzS XIR8q6YKrfqSwdy/4KgZVnI/JU1xkLc9D4Xc8rMo3jKr5/9uTF0e1SiZKQVR4CdMY67w uuiQ== X-Forwarded-Encrypted: i=1; AJvYcCUSpk6PMyIspNZup9XJtqG8vCw3Q7HjhLwyDLdA2Iijhf6H3D1OqvyhSJ5gU82zyuq6LO4swLqZQ5RG4l67Cak= X-Gm-Message-State: AOJu0Yw9MC29LYZfusjKTg808+DRoncxYWW3axFdyi9Ly8K7jmQvDlJb MY/gYYlf3JE7N7j33qK3xsajf4B9GKUelDoeQbj/6MTpYn9MN4VfvNIBK4Da X-Google-Smtp-Source: AGHT+IF2qDR1wLOODUIC0B1pqsQUDXflm4N4Q7eAWKeU4mfgRZNesaWJGFaVH8jBVihwBW3B0Sa4Jg== X-Received: by 2002:a5d:598f:0:b0:366:f5c4:b0e3 with SMTP id ffacd0b85a97d-366f5c4b16amr3268966f8f.41.1719273754827; Mon, 24 Jun 2024 17:02:34 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36638e9160asm11243384f8f.60.2024.06.24.17.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 17:02:34 -0700 (PDT) From: luca.boccassi@gmail.com To: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= Cc: Honnappa Nagarahalli , dpdk stable Subject: patch 'hash: fix RCU reclamation size' has been queued to stable release 22.11.6 Date: Tue, 25 Jun 2024 00:58:49 +0100 Message-Id: <20240624235907.885628-63-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240624235907.885628-1-luca.boccassi@gmail.com> References: <20240624235907.885628-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.6 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/27/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/0ac140899be5dba341dc0438ada302b636fe2dce Thanks. Luca Boccassi --- >From 0ac140899be5dba341dc0438ada302b636fe2dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= Date: Mon, 13 May 2024 16:35:53 +0000 Subject: [PATCH] hash: fix RCU reclamation size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit d45a7eed07d6b024956d10af529fcdcdd798227f ] Set the maximum reclamation size to user provided value. Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation") Signed-off-by: Abdullah Ömer Yamaç Reviewed-by: Honnappa Nagarahalli --- .mailmap | 2 +- lib/hash/rte_cuckoo_hash.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index e8953af6f0..6a7e64e72d 100644 --- a/.mailmap +++ b/.mailmap @@ -2,7 +2,7 @@ Aakash Sasidharan Aaro Koskinen Aaron Campbell Aaron Conole -Abdullah Ömer Yamaç +Abdullah Ömer Yamaç Abdullah Sevincer Abed Kamaluddin Abhijit Sinha diff --git a/lib/hash/rte_cuckoo_hash.c b/lib/hash/rte_cuckoo_hash.c index 13c8337519..7da32f1d49 100644 --- a/lib/hash/rte_cuckoo_hash.c +++ b/lib/hash/rte_cuckoo_hash.c @@ -1543,6 +1543,7 @@ rte_hash_rcu_qsbr_add(struct rte_hash *h, struct rte_hash_rcu_config *cfg) if (params.size == 0) params.size = total_entries; params.trigger_reclaim_limit = cfg->trigger_reclaim_limit; + params.max_reclaim_size = cfg->max_reclaim_size; if (params.max_reclaim_size == 0) params.max_reclaim_size = RTE_HASH_RCU_DQ_RECLAIM_MAX; params.esize = sizeof(struct __rte_hash_rcu_dq_entry); -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-06-25 00:22:16.947801784 +0100 +++ 0063-hash-fix-RCU-reclamation-size.patch 2024-06-25 00:22:13.229186546 +0100 @@ -1 +1 @@ -From d45a7eed07d6b024956d10af529fcdcdd798227f Mon Sep 17 00:00:00 2001 +From 0ac140899be5dba341dc0438ada302b636fe2dce Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit d45a7eed07d6b024956d10af529fcdcdd798227f ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -22 +23 @@ -index 3e73eec762..9013e15ea9 100644 +index e8953af6f0..6a7e64e72d 100644 @@ -33 +34 @@ - Abhijit Gangurde + Abhijit Sinha @@ -35 +36 @@ -index 16c9c4c5c4..265335f845 100644 +index 13c8337519..7da32f1d49 100644 @@ -38 +39 @@ -@@ -1558,6 +1558,7 @@ rte_hash_rcu_qsbr_add(struct rte_hash *h, struct rte_hash_rcu_config *cfg) +@@ -1543,6 +1543,7 @@ rte_hash_rcu_qsbr_add(struct rte_hash *h, struct rte_hash_rcu_config *cfg)