Re: [dpdk-dev] [PATCH v6 01/13] vhost: add packed ring indexes increasing function

2019-10-16 Thread Maxime Coquelin
On 10/15/19 6:07 PM, Marvin Liu wrote: > When vhost doing [de]nqueue, vq's local variable last_[used/avail]_idx > will be inceased. Adding inline functions can avoid duplicated codes. When enqueuing or dequeuing, the virtqueue's local available and used indexes are increased. Other than that:

[dpdk-dev] [PATCH v6 01/13] vhost: add packed ring indexes increasing function

2019-10-15 Thread Marvin Liu
When vhost doing [de]nqueue, vq's local variable last_[used/avail]_idx will be inceased. Adding inline functions can avoid duplicated codes. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 5131a97a3..22a3ddc38 100644 --- a/lib/librte_vhost/vhost.h