[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-19 Thread Wang, Zhihong
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Sunday, September 18, 2016 10:19 PM > To: Wang, Zhihong > Cc: dev at dpdk.org; maxime.coquelin at redhat.com; > thomas.monjalon at 6wind.com > Subject: Re: [PATCH v5 2/6] vhost: rewrite enqueue > >

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-18 Thread Yuanhan Liu
On Thu, Sep 08, 2016 at 11:39:24PM -0400, Zhihong Wang wrote: > This patch implements the vhost logic from scratch into a single function > designed for high performance and better maintainability. As always, your commit log just states what have been done, but doesn't tell why such changes have b

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-15 Thread Maxime Coquelin
Hi, On 09/14/2016 10:20 AM, Wang, Zhihong wrote: >>> + desc_current = >>> + vq->avail->ring[(vq->last_used_idx) >> & >>> + (vq->size - 1)]; >>> + desc_chain_head = desc_current; >

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-14 Thread Wang, Zhihong
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coquelin at redhat.com] > Sent: Tuesday, September 13, 2016 12:27 AM > To: Wang, Zhihong ; dev at dpdk.org > Cc: yuanhan.liu at linux.intel.com; thomas.monjalon at 6wind.com > Subject: Re: [PATCH v5 2/6] vhost: rewrite enqueue >

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-14 Thread Wang, Zhihong
> > + desc_current = > > + vq->avail->ring[(vq->last_used_idx) > & > > + (vq->size - 1)]; > > + desc_chain_head = desc_current; > > + desc = &vq->desc[de

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-12 Thread Maxime Coquelin
On 09/09/2016 05:39 AM, Zhihong Wang wrote: > > +static inline void __attribute__((always_inline)) > +notify_guest(struct virtio_net *dev, struct vhost_virtqueue *vq) > +{ > rte_smp_wmb(); > - > - *(volatile uint16_t *)&vq->used->idx += count; > - vq->last_used_idx += count; > -

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-12 Thread Maxime Coquelin
Hi, On 09/09/2016 05:39 AM, Zhihong Wang wrote: > This patch implements the vhost logic from scratch into a single function > designed for high performance and better maintainability. > > This is the baseline version of the new code, more optimization will be > added in the following patches in th

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-08 Thread Zhihong Wang
This patch implements the vhost logic from scratch into a single function designed for high performance and better maintainability. This is the baseline version of the new code, more optimization will be added in the following patches in this patch set. Signed-off-by: Zhihong Wang --- Changes in