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

2017-01-11 Thread Yuanhan Liu
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. >

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

2016-12-21 Thread Yuanhan Liu
On Wed, Dec 21, 2016 at 10:06:36AM -0800, Stephen Hemminger wrote: > On Wed, 21 Dec 2016 17:45:13 +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 t

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

2016-12-21 Thread Stephen Hemminger
On Wed, 21 Dec 2016 17:45:13 +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

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

2016-12-21 Thread Yuanhan Liu
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 (p