Re: [dpdk-dev] [PATCH 11/17] vhost: add helpers for packed virtqueues

2018-03-21 Thread Jens Freimann
On Mon, Mar 19, 2018 at 06:39:56PM +0800, Tiwei Bie wrote: On Fri, Mar 16, 2018 at 04:21:14PM +0100, Jens Freimann wrote: Add some helper functions to set/check descriptor flags and toggle the used wrap counter. Signed-off-by: Jens Freimann [...] +static inline void +toggle_wrap_counter(str

Re: [dpdk-dev] [PATCH 11/17] vhost: add helpers for packed virtqueues

2018-03-19 Thread Tiwei Bie
On Fri, Mar 16, 2018 at 04:21:14PM +0100, Jens Freimann wrote: > Add some helper functions to set/check descriptor flags > and toggle the used wrap counter. > > Signed-off-by: Jens Freimann [...] > > +static inline void > +toggle_wrap_counter(struct vhost_virtqueue *vq) > +{ > + vq->used_wr

[dpdk-dev] [PATCH 11/17] vhost: add helpers for packed virtqueues

2018-03-16 Thread Jens Freimann
Add some helper functions to set/check descriptor flags and toggle the used wrap counter. Signed-off-by: Jens Freimann --- lib/librte_vhost/virtio-1.1.h | 43 +++ 1 file changed, 43 insertions(+) diff --git a/lib/librte_vhost/virtio-1.1.h b/lib/librte_vho