[dpdk-dev] [PATCH] vhost-user: fix enabling of queue pair

2015-11-23 Thread Yuanhan Liu
On Fri, Nov 20, 2015 at 03:45:00PM +0200, Victor Kaplansky wrote: > The VHOST_USER_SET_VRING_ENABLE request is sent for each queue in > queue-pair separately. So, a queue-pair should be considered > enabled only when both RX and TX queues are enabled. Hi Victor, It was sent per queue-pair, and I

[dpdk-dev] [PATCH] vhost-user: fix enabling of queue pair

2015-11-20 Thread Victor Kaplansky
On Fri, Nov 20, 2015 at 03:45:00PM +0200, Victor Kaplansky wrote: > The VHOST_USER_SET_VRING_ENABLE request is sent for each queue in > queue-pair separately. So, a queue-pair should be considered > enabled only when both RX and TX queues are enabled. > > The old code caused segfault when last TX

[dpdk-dev] [PATCH] vhost-user: fix enabling of queue pair

2015-11-20 Thread Victor Kaplansky
The VHOST_USER_SET_VRING_ENABLE request is sent for each queue in queue-pair separately. So, a queue-pair should be considered enabled only when both RX and TX queues are enabled. The old code caused segfault when last TX queue was enabled. Signed-off-by: Victor Kaplansky --- lib/librte_vhost/v