[dpdk-dev] [PATCH v6] vhost: allow for many vhost user ports

Yuanhan Liu yuanhan.liu at linux.intel.com
Thu Jan 12 05:05:40 CET 2017

On Wed, Dec 21, 2016 at 05:45:13PM +0800, Yuanhan Liu wrote:
> From: Jan Wickbom <jan.wickbom at ericsson.com>
> 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 <patrik.r.andersson at ericsson.com>
> Signed-off-by: Jan Wickbom <jan.wickbom at ericsson.com>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>

Applied to dpdk-next-virtio.


More information about the dev mailing list