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 24FFCA0C4A; Tue, 15 Jun 2021 08:48:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14F614067A; Tue, 15 Jun 2021 08:48:19 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id 6A58440140 for ; Tue, 15 Jun 2021 08:48:18 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B93235C016A; Tue, 15 Jun 2021 02:48:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 15 Jun 2021 02:48:17 -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=fm1; bh= gzrEZh9TiTLYV1jB3IBUwzlUZS/AIGNglOY/L2jYADA=; b=uHIdC7fWbPLzu0My QFcAxpTPrH8BbujGcdYrz9we8SwQXg+88KApkOhMt18w4ZJZs+46NXimScbH6unN CI21ILywClbxH/vNdWmcNlXqQDOejDi/MBiLaFS4t97OKInabNY4DUpI+5vHU0F9 QEeX11TteBfK/u1SFhK6D6HNOhc0zAknalXCN9frVFqdFF0mBpRfKEG6FLIeH9hM EUx+BcIPUBsvmWrY6WxHq9eJwBuXBfDSdc7qJEJkjn1vvk61RmXYn7bY4U+nCeUU nVKDCsdV3W71rP7S/EF74dTfXCskMmGZfPcizxTNeXGJJnHQXltNjD3AJTo/ZSl4 V+DK8g== 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=fm3; bh=gzrEZh9TiTLYV1jB3IBUwzlUZS/AIGNglOY/L2jYA DA=; b=rmWixmxmYSNnz/Vux7FnmOILHygnQiKihHS3Ls84tVRmSyerKFVfFfeIf 8yhSKd/1MzlEhAMk7ySho8d9kZDLWvGJuhuCp1BL6WKorXrjWr+qMctQPrYK/UFj GyNDob8+xq8B3hoUzNCJCIqb/fJChwtRkNGAa+IEsh0g5Henh8jC5x/B78ENAdSa bMEBT+n0X872Qlu8PX3IaCRgoSlCHiTIC0ML67xuscAXO8SKBplxc2JsskksVQCR FTVpTQxwEqBAGmcAL6CaxtDx6LkS55LFSC0F9uv1KXYZIiceytNaxsWsdCbkMqsk NDJpWEnMnu641NMCbQDs2+7eORoog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedviedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthhqredttddtudenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeefgeffiefhfeettdfhvdfgteekffffudekvedtvedtvdfgveeu udevgedvgeegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 02:48:15 -0400 (EDT) From: Thomas Monjalon To: Morten =?ISO-8859-1?Q?Br=F8rup?= Cc: Bruce Richardson , dev@dpdk.org, olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com, ferruh.yigit@intel.com, jerinj@marvell.com, gakhil@marvell.com Date: Tue, 15 Jun 2021 08:48:14 +0200 Message-ID: <1857954.7Ex43hCf9S@thomas> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35C61851@smartserver.smartshare.dk> References: <20210614105839.3379790-1-thomas@monjalon.net> <2004320.XGyPsaEoyj@thomas> <98CBD80474FA8B44BF855DF32C47DC35C61851@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [dpdk-dev] [PATCH] parray: introduce internal API for dynamic arrays 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 Sender: "dev" 14/06/2021 17:48, Morten Br=F8rup: > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon > It would be much simpler to just increase RTE_MAX_ETHPORTS to something b= ig enough to hold a sufficiently large array. And possibly add an rte_max_e= thports variable to indicate the number of populated entries in the array, = for use when iterating over the array. >=20 > Can we come up with another example than RTE_MAX_ETHPORTS where this libr= ary provides a better benefit? What is big enough? Is 640KB enough for RAM? ;) When dealing with microservices switching, the numbers can increase very fa= st.