[dpdk-dev] [PATCH 2/2] examples/vhost: support multiple socket files

2016-08-23 Thread Yuanhan Liu
On Sat, Aug 20, 2016 at 06:11:36AM -0400, Jiayu Hu wrote: > When examples/vhost runs in client mode, only one QEMU can be connected. > This is because that examples/vhost just supports one socket file. This > patch is to add multiple sockets support for examples/vhost. > > Signed-off-by: Jiayu Hu

[dpdk-dev] [PATCH 2/2] examples/vhost: support multiple socket files

2016-08-20 Thread Jiayu Hu
When examples/vhost runs in client mode, only one QEMU can be connected. This is because that examples/vhost just supports one socket file. This patch is to add multiple sockets support for examples/vhost. Signed-off-by: Jiayu Hu Reviewed-by: Maxime Coquelin --- examples/vhost/main.c | 45 +

[dpdk-dev] [PATCH 2/2] examples/vhost: support multiple socket files

2016-08-18 Thread Yuanhan Liu
On Thu, Aug 18, 2016 at 10:27:55AM +0200, Maxime Coquelin wrote: > > > On 08/16/2016 06:14 PM, Jiayu Hu wrote: > >When examples/vhost runs in client mode, only one QEMU can be connected. > >This is because that examples/vhost just supports one socket file. This > >patch is to add multiple sockets

[dpdk-dev] [PATCH 2/2] examples/vhost: support multiple socket files

2016-08-18 Thread Yuanhan Liu
On Tue, Aug 16, 2016 at 12:14:39PM -0400, Jiayu Hu wrote: > +/* > + * This function is used to unregister drivers. > + */ > +static void > +unregister_drivers(int socket_num) > +{ Redundant comment. The function name already explains it well. > /* Register vhost user driver to handle vhost

[dpdk-dev] [PATCH 2/2] examples/vhost: support multiple socket files

2016-08-18 Thread Maxime Coquelin
On 08/16/2016 06:14 PM, Jiayu Hu wrote: > When examples/vhost runs in client mode, only one QEMU can be connected. > This is because that examples/vhost just supports one socket file. This > patch is to add multiple sockets support for examples/vhost. > > Signed-off-by: Jiayu Hu > --- > example

[dpdk-dev] [PATCH 2/2] examples/vhost: support multiple socket files

2016-08-16 Thread Jiayu Hu
When examples/vhost runs in client mode, only one QEMU can be connected. This is because that examples/vhost just supports one socket file. This patch is to add multiple sockets support for examples/vhost. Signed-off-by: Jiayu Hu --- examples/vhost/main.c | 50 +++