Re: [dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-04 Thread Maxime Coquelin
On 07/04/2018 08:25 AM, Tiwei Bie wrote: On Mon, Jul 02, 2018 at 10:16:28AM +0200, Maxime Coquelin wrote: Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 73 lib/librte_vhost/vhost.h | 71 ++

Re: [dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-04 Thread Maxime Coquelin
On 07/03/2018 08:06 AM, Jason Wang wrote: On 2018年07月02日 16:16, Maxime Coquelin wrote: Signed-off-by: Maxime Coquelin ---   lib/librte_vhost/vhost.c | 73   lib/librte_vhost/vhost.h | 71 ++   lib

Re: [dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-03 Thread Tiwei Bie
On Mon, Jul 02, 2018 at 10:16:28AM +0200, Maxime Coquelin wrote: > Signed-off-by: Maxime Coquelin > --- > lib/librte_vhost/vhost.c | 73 > > lib/librte_vhost/vhost.h | 71 ++ > lib/librte_vhost/vhost_use

Re: [dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-02 Thread Maxime Coquelin
On 07/03/2018 07:57 AM, Jason Wang wrote: On 2018年07月02日 16:16, Maxime Coquelin wrote: +static inline int +vhost_enable_notify_split(struct vhost_virtqueue *vq, int enable) +{ +    if (enable) +    vq->used->flags &= ~VRING_USED_F_NO_NOTIFY; +    else +    vq->used->flags |= VRING_U

Re: [dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-02 Thread Jason Wang
On 2018年07月02日 16:16, Maxime Coquelin wrote: Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 73 lib/librte_vhost/vhost.h | 71 ++ lib/librte_vhost/vhost_user.c| 24 +

Re: [dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-02 Thread Jason Wang
On 2018年07月02日 16:16, Maxime Coquelin wrote: +static inline int +vhost_enable_notify_split(struct vhost_virtqueue *vq, int enable) +{ + if (enable) + vq->used->flags &= ~VRING_USED_F_NO_NOTIFY; + else + vq->used->flags |= VRING_USED_F_NO_NOTIFY; + +

[dpdk-dev] [PATCH v6 14/15] vhost: add notification for packed ring

2018-07-02 Thread Maxime Coquelin
Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 73 lib/librte_vhost/vhost.h | 71 ++ lib/librte_vhost/vhost_user.c| 24 + lib/librte_vhost/virtio-packed.h | 11 ++ lib/l