Re: [dpdk-dev] [PATCH 10/21] vhost: initialize vrings IOTLB caches

2017-09-04 Thread Maxime Coquelin
Hi Remy, On 09/04/2017 03:57 PM, Remy Horton wrote: On 31/08/2017 10:50, Maxime Coquelin wrote: [..] +reset_vring_queue(struct virtio_net *dev, uint32_t vring_idx) { +struct vhost_virtqueue *vq = dev->virtqueue[vring_idx]; int callfd; Probably ought to have a bounds check on vring_

Re: [dpdk-dev] [PATCH 10/21] vhost: initialize vrings IOTLB caches

2017-09-04 Thread Remy Horton
On 31/08/2017 10:50, Maxime Coquelin wrote: [..] +reset_vring_queue(struct virtio_net *dev, uint32_t vring_idx) { + struct vhost_virtqueue *vq = dev->virtqueue[vring_idx]; int callfd; Probably ought to have a bounds check on vring_idx..

[dpdk-dev] [PATCH 10/21] vhost: initialize vrings IOTLB caches

2017-08-31 Thread Maxime Coquelin
The per-virtqueue IOTLB cache init is done at virtqueue init time. init_vring_queue() now takes vring id as parameter, so that the IOTLB cache mempool name can be generated. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 15 ++- 1 file changed, 10 insertions(+), 5 dele