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

2016-12-13 Thread Jan Wickbom
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: den 13 december 2016 10:15 > To: Jan Wickbom > Cc: dev@dpdk.org; Patrik Andersson R > Subject: Re: [PATCH v3] vhost: allow for many vhost user ports > > On Mon, Dec 12, 2016 at 05:50:34PM +0100, Jan W

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

2016-12-13 Thread Yuanhan Liu
On Mon, Dec 12, 2016 at 05:50:34PM +0100, Jan Wickbom wrote: > 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 sele

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

2016-12-12 Thread 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