From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31D7DA04DC; Tue, 20 Oct 2020 13:51:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9533FACFD; Tue, 20 Oct 2020 13:51:01 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id 99C34AA0A for ; Tue, 20 Oct 2020 13:51:00 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 818F4764; Tue, 20 Oct 2020 07:50:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 20 Oct 2020 07:50:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= /jLcEr2WHf6JfKTg7QDBP2ZzcnZCKEwvFlW66rTX4a8=; b=feX/ArqVq96dB25Q IHqEoKWqwkJUCtmWJ1o5AcOHBttWpihEea3IjKEmqRJuLFgvWr7pcO6v0cVaSpo+ daw30Bk+JYgzUaH7vBvBpmtsKBp7UaIfoYXxQoQoL5eOHorYfkRky3dD9XAfsARM /VV+3tmhDQtoxkacHYx0dPyN0g0Gu42jbNFZEIHTyv8KOlFTubDZN1II5R8umo9z dGBz1aOVzTXiTkiGt8vqlMQEXoXC7A1yxE5CeCTXzm3/f5V+dSsyqRQG92TrhpMl 3ztKG0Z7iWSqK3MPkZmkmDt6OD5pd3lRijbb+Ube4DPFG7YyJUYpEWqMGvghIn9D LjQEaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=/jLcEr2WHf6JfKTg7QDBP2ZzcnZCKEwvFlW66rTX4 a8=; b=L/8aRSnIP5z9C2KRuff29zuxVPO+0ojAul8ALsM9h6dvKWVJwMfcIdbl5 h9iB+7rOGvfsIQvHe9OelFbp9mN4uaFy7xo2sUPx2hEJunq2f4/O7/I9ny2ntp5+ 6E2tY67a3QmrI56n1U3QGQIDjZgl7tp9WdyZXlZjepsi3uHEd1lxZikssYOSJfet KCdtWZ8KVBdt4JYLPS06YyBjgboKPj6gTk7CT0eDxz9m/93zavrfyonX2+1Ewh0v E3ZSojZiRg9JApg5fSwbHvj4ByUdiSNmKD/XZX69dHPh1N9ZsherTh1SobLWN45U Ai+ULfe0Dm6KZzf8ylP3SmSmALOew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeefgdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 2499F3280059; Tue, 20 Oct 2020 07:50:57 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, bruce.richardson@intel.com Date: Tue, 20 Oct 2020 13:50:55 +0200 Message-ID: <3266348.IbmaAm1IaQ@thomas> In-Reply-To: <20200904223118.10002-1-stephen@networkplumber.org> References: <20200702172852.6201-1-stephen@networkplumber.org> <20200904223118.10002-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] rte_metrics: move maximum number of metrics into rte_config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 05/09/2020 00:31, Stephen Hemminger: > If using lots of queues and ports, and having per port or per queue > metrics it is easy to exceed the upper bound of the metric library. > Move the limit into rte_config where user can change it. > > Ideally, there would be no upper bound and a dynamic structure > such as red-black tree or hash table would be used for these. > > Signed-off-by: Stephen Hemminger > --- > --- a/config/rte_config.h > +++ b/config/rte_config.h > +/* rte_metrics defines */ > +#define RTE_METRICS_MAX_METRICS 256 Not sure we want to go in the direction of adding such tuning in rte_config.h.