> -----Original Message----- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Yao, Lei A > Sent: Monday, September 4, 2017 8:46 AM > To: Yang, Zhiyong <zhiyong.y...@intel.com>; dev@dpdk.org > Cc: tho...@monjalon.net; Yigit, Ferruh <ferruh.yi...@intel.com>; Wiles, Keith > <keith.wi...@intel.com>; step...@networkplumber.org; > Yang, Zhiyong <zhiyong.y...@intel.com> > Subject: Re: [dpdk-dev] [PATCH v2 3/4] common_base: extend RTE_MAX_ETHPORTS > from 32 to 1024 > > > > > -----Original Message----- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhiyong Yang > > Sent: Monday, September 4, 2017 1:58 PM > > To: dev@dpdk.org > > Cc: tho...@monjalon.net; Yigit, Ferruh <ferruh.yi...@intel.com>; Wiles, > > Keith <keith.wi...@intel.com>; step...@networkplumber.org; Yang, > > Zhiyong <zhiyong.y...@intel.com> > > 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=32 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=32 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 <zhiyong.y...@intel.com> > > --- > > 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=y > > # > > CONFIG_RTE_LIBRTE_ETHER=y > > CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n > > -CONFIG_RTE_MAX_ETHPORTS=32 > > +CONFIG_RTE_MAX_ETHPORTS=1024 > > CONFIG_RTE_MAX_QUEUES_PER_PORT=1024 > > CONFIG_RTE_LIBRTE_IEEE1588=n > > CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16 > > -- > 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, > after practice, only 1009 socket file can be used for vdev device with testpmd > sample.
ulimit -Sn 10000 ?