From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B73733A031 for ; Wed, 15 Apr 2026 13:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776260690; cv=none; b=EbC52/nzVFDOBhIrufIOuFfC58eLhYTbdv8UKZimLDKaiuGXKYsHCWp+nnlznPNiRHOrXS1z7aADBJSb+OA8xa9ChoMVEYUylgjXQ2ZeMOzYaCyJGZkKWhQ8T71eoRL8m8BMSSsEOjJ4fOFZvpYHAL38StC/irEqD2MHRu2vBfU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776260690; c=relaxed/simple; bh=mbcIAsxip3Je0Mce9MUdGsnyf6RaeI4A9/9IGvcUjKQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a8eBViQEWIe0DZpWhioSLC6AHQTcpUyO0nTzDdM5BDKuUrLKtpDSHlNXbar7bqMuVJtZUzvdRxq97y2prj0ZRLobDigR6quiPQ+AuXt0NJV6wwQDV0/dFpN1uaCsnFo9VFJWLgUIAhTR3qr1dtJVTC6B2pCesUpphqFs3FdIWac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id CF1BE602AB; Wed, 15 Apr 2026 15:44:45 +0200 (CEST) Date: Wed, 15 Apr 2026 15:44:40 +0200 From: Florian Westphal To: Vladimir Vdovin Cc: netfilter-devel@vger.kernel.org, pablo@netfilter.org, coreteam@netfilter.org, phil@nwl.cc Subject: Re: [PATCH nf-next] netfilter: nf_conncount: make number of hash slots configurable Message-ID: References: <20260413123712.42993-1-deliran@verdict.gg> Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Vladimir Vdovin wrote: > > Maybe change the code to size the array dynamically > > based on e.g. number of online cpus? > Hi Florian, > > May be we could move it to module params? > (not sure that this params have to depend on number of cpu) > May be use number of cpus as default value? I would prefer autotuning based on online cpus so this doesn't have to be changed at all. How many cores does your platfrom have? The current value was set 2014.