From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ananyev, Konstantin" Subject: Re: [PATCH v2 3/4] common_base: extend RTE_MAX_ETHPORTS from 32 to 1024 Date: Mon, 4 Sep 2017 09:27:11 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772584F243E1E@irsmsx105.ger.corp.intel.com> References: <20170809084203.17562-1-zhiyong.yang@intel.com> <20170904055734.21354-1-zhiyong.yang@intel.com> <20170904055734.21354-4-zhiyong.yang@intel.com> <2DBBFF226F7CF64BAFCA79B681719D953A266703@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "thomas@monjalon.net" , "Yigit, Ferruh" , "Wiles, Keith" , "stephen@networkplumber.org" , "Yang, Zhiyong" To: "Yao, Lei A" , "Yang, Zhiyong" , "dev@dpdk.org" Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 886A07CBD for ; Mon, 4 Sep 2017 11:28:41 +0200 (CEST) In-Reply-To: <2DBBFF226F7CF64BAFCA79B681719D953A266703@shsmsx102.ccr.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yao, Lei A > Sent: Monday, September 4, 2017 8:46 AM > To: Yang, Zhiyong ; dev@dpdk.org > Cc: thomas@monjalon.net; Yigit, Ferruh ; Wiles, K= eith ; stephen@networkplumber.org; > Yang, Zhiyong > Subject: Re: [dpdk-dev] [PATCH v2 3/4] common_base: extend RTE_MAX_ETHPOR= TS from 32 to 1024 >=20 >=20 >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhiyong Yang > > Sent: Monday, September 4, 2017 1:58 PM > > To: dev@dpdk.org > > Cc: thomas@monjalon.net; Yigit, Ferruh ; Wiles, > > Keith ; stephen@networkplumber.org; Yang, > > Zhiyong > > Subject: [dpdk-dev] [PATCH v2 3/4] common_base: extend > > RTE_MAX_ETHPORTS from 32 to 1024 > > > > The reasons to modify RTE_MAX_ETHPORTS is the following. > > > > 1. RTE_MAX_ETHPORTS=3D32 by default has not met user's requirements > > with development of virtualization technology. Some vdev users have > > to modify the setting before the compiling. > > > > 2. port_id have been extended to 16 bits definition. But for many > > samples such as testpmd, l3fwd, num of port is still limited to > > RTE_MAX_ETHPORTS=3D32 by default. This may limit usage of 16 bits > > port_id. > > > > So, it is necessary to enlarge RTE_MAX_ETHPORTS to more than 256. > > > > Signed-off-by: Zhiyong Yang > > --- > > config/common_base | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/config/common_base b/config/common_base > > index 5e97a08b6..dccc13e31 100644 > > --- a/config/common_base > > +++ b/config/common_base > > @@ -131,7 +131,7 @@ CONFIG_RTE_LIBRTE_KVARGS=3Dy > > # > > CONFIG_RTE_LIBRTE_ETHER=3Dy > > CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=3Dn > > -CONFIG_RTE_MAX_ETHPORTS=3D32 > > +CONFIG_RTE_MAX_ETHPORTS=3D1024 > > CONFIG_RTE_MAX_QUEUES_PER_PORT=3D1024 > > CONFIG_RTE_LIBRTE_IEEE1588=3Dn > > CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=3D16 > > -- > 2.13.3 > Hi, Zhiyong >=20 > I met one issue for changing CONFIG_RTE_MAX_ETHPORTS to 1024. > One process can only open 1024 file as maximum in common linux distributi= on, > after practice, only 1009 socket file can be used for vdev device with te= stpmd > sample. ulimit -Sn 10000 ?