Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-09 Thread Jason Wang
On 2018/11/9 下午12:00, Michael S. Tsirkin wrote: On Fri, Nov 09, 2018 at 10:30:50AM +0800, Jason Wang wrote: On 2018/11/8 下午11:56, Michael S. Tsirkin wrote: On Thu, Nov 08, 2018 at 07:51:48PM +0800, Tiwei Bie wrote: On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: On 2018/11/8

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-09 Thread Jason Wang
On 2018/11/9 上午11:58, Michael S. Tsirkin wrote: On Fri, Nov 09, 2018 at 10:25:28AM +0800, Jason Wang wrote: On 2018/11/8 下午10:14, Michael S. Tsirkin wrote: On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: On 2018/11/8 上午9:38, Tiwei Bie wrote: + + if (vq->vq.num_free <

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Michael S. Tsirkin
On Fri, Nov 09, 2018 at 10:30:50AM +0800, Jason Wang wrote: > > On 2018/11/8 下午11:56, Michael S. Tsirkin wrote: > > On Thu, Nov 08, 2018 at 07:51:48PM +0800, Tiwei Bie wrote: > > > On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: > > > > On 2018/11/8 上午9:38, Tiwei Bie wrote: > > > > >

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Michael S. Tsirkin
On Fri, Nov 09, 2018 at 10:25:28AM +0800, Jason Wang wrote: > > On 2018/11/8 下午10:14, Michael S. Tsirkin wrote: > > On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: > > > On 2018/11/8 上午9:38, Tiwei Bie wrote: > > > > > > + > > > > > > + if (vq->vq.num_free < descs_used) { > > > > > >

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Jason Wang
On 2018/11/8 下午11:56, Michael S. Tsirkin wrote: On Thu, Nov 08, 2018 at 07:51:48PM +0800, Tiwei Bie wrote: On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: On 2018/11/8 上午9:38, Tiwei Bie wrote: + + if (vq->vq.num_free < descs_used) { + pr_debug("Can't add buf

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Jason Wang
On 2018/11/8 下午10:14, Michael S. Tsirkin wrote: On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: On 2018/11/8 上午9:38, Tiwei Bie wrote: + + if (vq->vq.num_free < descs_used) { + pr_debug("Can't add buf len %i - avail = %i\n", +descs_used,

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Tiwei Bie
On Thu, Nov 08, 2018 at 10:56:02AM -0500, Michael S. Tsirkin wrote: > On Thu, Nov 08, 2018 at 07:51:48PM +0800, Tiwei Bie wrote: > > On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: > > > > > > On 2018/11/8 上午9:38, Tiwei Bie wrote: > > > > > > + > > > > > > + if (vq->vq.num_free <

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Michael S. Tsirkin
On Thu, Nov 08, 2018 at 07:51:48PM +0800, Tiwei Bie wrote: > On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: > > > > On 2018/11/8 上午9:38, Tiwei Bie wrote: > > > > > + > > > > > + if (vq->vq.num_free < descs_used) { > > > > > + pr_debug("Can't add buf len %i - avail =

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Michael S. Tsirkin
On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: > > On 2018/11/8 上午9:38, Tiwei Bie wrote: > > > > + > > > > + if (vq->vq.num_free < descs_used) { > > > > + pr_debug("Can't add buf len %i - avail = %i\n", > > > > +descs_used,

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Tiwei Bie
On Thu, Nov 08, 2018 at 04:18:25PM +0800, Jason Wang wrote: > > On 2018/11/8 上午9:38, Tiwei Bie wrote: > > > > + > > > > + if (vq->vq.num_free < descs_used) { > > > > + pr_debug("Can't add buf len %i - avail = %i\n", > > > > +descs_used,

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-08 Thread Jason Wang
On 2018/11/8 上午9:38, Tiwei Bie wrote: + + if (vq->vq.num_free < descs_used) { + pr_debug("Can't add buf len %i - avail = %i\n", +descs_used, vq->vq.num_free); + /* FIXME: for historical reasons, we force a notify here if +

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-07 Thread Tiwei Bie
On Wed, Nov 07, 2018 at 12:48:46PM -0500, Michael S. Tsirkin wrote: > On Wed, Jul 11, 2018 at 10:27:09AM +0800, Tiwei Bie wrote: > > This commit introduces the support (without EVENT_IDX) for > > packed ring. > > > > Signed-off-by: Tiwei Bie > > --- > > drivers/virtio/virtio_ring.c | 495

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-11-07 Thread Michael S. Tsirkin
On Wed, Jul 11, 2018 at 10:27:09AM +0800, Tiwei Bie wrote: > This commit introduces the support (without EVENT_IDX) for > packed ring. > > Signed-off-by: Tiwei Bie > --- > drivers/virtio/virtio_ring.c | 495 ++- > 1 file changed, 487 insertions(+), 8 deletions(-)

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-09-12 Thread Michael S. Tsirkin
On Wed, Jul 11, 2018 at 10:27:09AM +0800, Tiwei Bie wrote: > This commit introduces the support (without EVENT_IDX) for > packed ring. > > Signed-off-by: Tiwei Bie > --- > drivers/virtio/virtio_ring.c | 495 ++- > 1 file changed, 487 insertions(+), 8 deletions(-)

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-09-09 Thread Tiwei Bie
On Fri, Sep 07, 2018 at 09:49:14AM -0400, Michael S. Tsirkin wrote: > On Wed, Jul 11, 2018 at 10:27:09AM +0800, Tiwei Bie wrote: > > This commit introduces the support (without EVENT_IDX) for > > packed ring. > > > > Signed-off-by: Tiwei Bie > > --- > > drivers/virtio/virtio_ring.c | 495

Re: [PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-09-07 Thread Michael S. Tsirkin
On Wed, Jul 11, 2018 at 10:27:09AM +0800, Tiwei Bie wrote: > This commit introduces the support (without EVENT_IDX) for > packed ring. > > Signed-off-by: Tiwei Bie > --- > drivers/virtio/virtio_ring.c | 495 ++- > 1 file changed, 487 insertions(+), 8 deletions(-)

[PATCH net-next v2 3/5] virtio_ring: add packed ring support

2018-07-10 Thread Tiwei Bie
This commit introduces the support (without EVENT_IDX) for packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 495 ++- 1 file changed, 487 insertions(+), 8 deletions(-) diff --git a/drivers/virtio/virtio_ring.c