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 35B1BF91F for ; Thu, 12 Jan 2017 05:03:29 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 11 Jan 2017 20:03:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,348,1477983600"; d="scan'208";a="1082008721" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga001.jf.intel.com with ESMTP; 11 Jan 2017 20:03:28 -0800 Date: Thu, 12 Jan 2017 12:05:40 +0800 From: Yuanhan Liu To: dev@dpdk.org Cc: Patrik Andersson , Jan Wickbom Message-ID: <20170112040540.GD9770@yliu-dev.sh.intel.com> References: <1481729401-27546-1-git-send-email-jan.wickbom@ericsson.com> <1482313513-1709-1-git-send-email-yuanhan.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1482313513-1709-1-git-send-email-yuanhan.liu@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v6] vhost: allow for many vhost user ports 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: Thu, 12 Jan 2017 04:03:30 -0000 On Wed, Dec 21, 2016 at 05:45:13PM +0800, Yuanhan Liu wrote: > From: Jan Wickbom > > Currently select() is used to monitor file descriptors for vhostuser > ports. This limits the number of ports possible to create since the > fd number is used as index in the fd_set and we have seen fds > 1023. > This patch changes select() to poll(). This way we can keep an > packed (pollfd) array for the fds, e.g. as many fds as the size of > the array. > > Also see: > http://dpdk.org/ml/archives/dev/2016-April/037024.html > > Reported-by: Patrik Andersson > Signed-off-by: Jan Wickbom > Signed-off-by: Yuanhan Liu Applied to dpdk-next-virtio. --yliu