From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 556007CA9 for ; Mon, 4 Sep 2017 09:46:16 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2017 00:46:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,473,1498546800"; d="scan'208";a="1010694203" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 04 Sep 2017 00:46:14 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 4 Sep 2017 00:46:14 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.39]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Mon, 4 Sep 2017 15:46:11 +0800 From: "Yao, Lei A" To: "Yang, Zhiyong" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "Yigit, Ferruh" , "Wiles, Keith" , "stephen@networkplumber.org" , "Yang, Zhiyong" Thread-Topic: [dpdk-dev] [PATCH v2 3/4] common_base: extend RTE_MAX_ETHPORTS from 32 to 1024 Thread-Index: AQHTJULzXFFwd9GzXEmmaZ02G3Zwy6KkWHsA Date: Mon, 4 Sep 2017 07:46:10 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A266703@shsmsx102.ccr.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> In-Reply-To: <20170904055734.21354-4-zhiyong.yang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmFhNjcxOTAtYzA4YS00MGMxLTk2YzMtNjM5ZDhiZWNmNjNhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjBSdlwvYVhqYjNUNU5KbHg1dWp4b01mbDJGcitLc1pJWUtkQTJnSjJcL3NCRT0ifQ== x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 3/4] common_base: extend RTE_MAX_ETHPORTS from 32 to 1024 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: , X-List-Received-Date: Mon, 04 Sep 2017 07:46:17 -0000 > -----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 >=20 > The reasons to modify RTE_MAX_ETHPORTS is the following. >=20 > 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. >=20 > 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. >=20 > So, it is necessary to enlarge RTE_MAX_ETHPORTS to more than 256. >=20 > Signed-off-by: Zhiyong Yang > --- > config/common_base | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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 I met one issue for changing CONFIG_RTE_MAX_ETHPORTS to 1024. One process can only open 1024 file as maximum in common linux distribution= ,=20 after practice, only 1009 socket file can be used for vdev device with test= pmd sample.=20