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 741914401D; Mon, 13 May 2024 18:35:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08F90402F0; Mon, 13 May 2024 18:35:59 +0200 (CEST) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by mails.dpdk.org (Postfix) with ESMTP id BBF50402CD; Mon, 13 May 2024 18:35:57 +0200 (CEST) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a59b178b75bso900994866b.0; Mon, 13 May 2024 09:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715618157; x=1716222957; 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=/cISEiLFvB0LeUiYeWZcGqc4oUqwJzS2YhOj2AjRS9A=; b=DB1FhJQaMynh7jb+Lba34NICAOKnOGl/LuSsxEzcBnX5zDMamBISGgpIic9ZmM6ORS LpyQK9x98dNjVYv8SbCoxoFTLFF7N0W0nYNQ2kpBg15zdzZXtHl6Ub9Bh07n8uYbc2D1 frKvCMe9dLuKvuCW+/CEi+OD39Czi2awXk/ZRSWtdLNNQ7eI8VPse6posU9o/ZDluVfK DSdfi/Y2F222bls1m946Ttd2oDiS4Fq38qyRVAgumCfGZOVTf+fn5p8vKMBVArlsmih3 hI5l52+e6D5ELfdzJuWBNcVxv9LII6j2pnzwAcvPGRK66xQmaXOJVZhjMYrTCHfUnnzJ 2y/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715618157; x=1716222957; 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=/cISEiLFvB0LeUiYeWZcGqc4oUqwJzS2YhOj2AjRS9A=; b=hTrXkMPpq0vCOsNFYdHxQHPwB59J8lieDBB2JoBwc8cq9QHN8upISvyUbGv0ZC3Pab wc0hrZWTkPMOBIcFG+/CCfaV/5yjOCwpT2j3qxOGXhOS7pFSkmPofn735oQpqqBJOcAy gfQ9J6i/4tIGuT4fYU4JumxGiBHKln+QPd/RozXiaWUXx57MhXL8vsrDMXVl4fIyny8Q G7NdNnq5uqtAXk3QQWxp9CMY1cC5ss8XkZtKST2xdSvSil4JRejwvd5bDGxxqkROxrEI yHE+JMpnZJ41oLFMDh5Tb8FeoTS/tvDbRdPW0bhS/NB3NKiENAguzhGE8Tejc0jaVN7+ j8cg== X-Forwarded-Encrypted: i=1; AJvYcCXQSD5+VZ9WCF2oBSEUS5ter0hFA/yr7TgtqWb5xGXlkyRsbY5DzwKRpFDOyMsIrSyunt7hhqwthXTRKKsqsJU= X-Gm-Message-State: AOJu0YzlqQItgD5zta0+b7T1mC3HZ6rRpAlsM0xcD7gbi00K3xzZPLJo wUYQlMaPomeuEsD1j4SaxQ/1Bo46El+zXZmGwSRvd7EMt9bUhnmdVlSwi0u6 X-Google-Smtp-Source: AGHT+IGkq9fJqbActSTegW6mG0WKkAJTlqdbMVjG934HdpgcWnH/fVYSmuub/PxBbVT9ORvmXBy2tQ== X-Received: by 2002:a17:906:5393:b0:a59:bacc:b07f with SMTP id a640c23a62f3a-a5a2d672f6bmr728723266b.52.1715618156834; Mon, 13 May 2024 09:35:56 -0700 (PDT) Received: from dcu.otaknetworks.com ([212.156.37.190]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7faasm615900066b.136.2024.05.13.09.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 09:35:56 -0700 (PDT) From: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= To: dev@dpdk.org Cc: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= , stable@dpdk.org, dharmik.thakkar@arm.com, Honnappa Nagarahalli , Yipeng Wang , Sameh Gobriel , Bruce Richardson , Vladimir Medvedkin Subject: [PATCH v3] lib/hash: setting the maximum reclamation size Date: Mon, 13 May 2024 16:35:53 +0000 Message-Id: <20240513163553.1221308-1-aomeryamac@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Set the maximum reclamation size to user provided value Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation") Cc: stable@dpdk.org Cc: dharmik.thakkar@arm.com Cc: Honnappa Nagarahalli Cc: Yipeng Wang Cc: Sameh Gobriel Cc: Bruce Richardson Cc: Vladimir Medvedkin Signed-off-by: Abdullah Ömer Yamaç --- lib/hash/rte_cuckoo_hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hash/rte_cuckoo_hash.c b/lib/hash/rte_cuckoo_hash.c index 9cf94645f6..f7f0fdfd21 100644 --- a/lib/hash/rte_cuckoo_hash.c +++ b/lib/hash/rte_cuckoo_hash.c @@ -1557,6 +1557,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.34.1