[dpdk-dev] [PATCH v7 3/8] vhost: vring queue setup for multiple queue support

2015-10-22 Thread Yuanhan Liu
On Thu, Oct 22, 2015 at 09:49:58AM +, Xie, Huawei wrote: > On 10/21/2015 11:48 AM, Yuanhan Liu wrote: > > All queue pairs, including the default (the first) queue pair, > > are allocated dynamically, when a vring_call message is received > > first time for a specific queue pair. > > > > This

[dpdk-dev] [PATCH v7 3/8] vhost: vring queue setup for multiple queue support

2015-10-22 Thread Xie, Huawei
On 10/21/2015 11:48 AM, Yuanhan Liu wrote: > All queue pairs, including the default (the first) queue pair, > are allocated dynamically, when a vring_call message is received > first time for a specific queue pair. > > This is a refactor work for enabling vhost-user multiple queue; > it should not

[dpdk-dev] [PATCH v7 3/8] vhost: vring queue setup for multiple queue support

2015-10-21 Thread Yuanhan Liu
On Tue, Oct 20, 2015 at 09:45:12PM -0700, Stephen Hemminger wrote: > On Wed, 21 Oct 2015 11:48:09 +0800 > Yuanhan Liu wrote: > > > struct virtio_net { > > - struct vhost_virtqueue *virtqueue[VIRTIO_QNUM];/**< Contains > > all virtqueue information. */ > > + struct vhost_virtqueue

[dpdk-dev] [PATCH v7 3/8] vhost: vring queue setup for multiple queue support

2015-10-21 Thread Yuanhan Liu
All queue pairs, including the default (the first) queue pair, are allocated dynamically, when a vring_call message is received first time for a specific queue pair. This is a refactor work for enabling vhost-user multiple queue; it should not break anything as it does no functional changes: we

[dpdk-dev] [PATCH v7 3/8] vhost: vring queue setup for multiple queue support

2015-10-20 Thread Stephen Hemminger
On Wed, 21 Oct 2015 11:48:09 +0800 Yuanhan Liu wrote: > struct virtio_net { > - struct vhost_virtqueue *virtqueue[VIRTIO_QNUM];/**< Contains > all virtqueue information. */ > + struct vhost_virtqueue *virtqueue[VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX]; > /**< Contains all