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

Maxime Coquelin maxime.coquelin at redhat.com
Mon Sep 4 17:45:01 CEST 2017


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_idx..

Indeed, you are right. I'll fix it in next round.

Thanks,
Maxime


More information about the dev mailing list