Re: [PATCH v3] vhost: fix packed ring descriptor update in async enqueue

2021-11-16 Thread Maxime Coquelin
On 11/16/21 16:17, Jiayu Hu wrote: If the packet uses multiple descriptors and its descriptor indices are wrapped, the first descriptor flag is not updated last, which may cause virtio read the incomplete packet. For example, given a packet uses 64 descriptors, and virtio ring size is 256, and

Re: [PATCH v3] vhost: fix packed ring descriptor update in async enqueue

2021-11-16 Thread Maxime Coquelin
On 11/16/21 16:17, Jiayu Hu wrote: If the packet uses multiple descriptors and its descriptor indices are wrapped, the first descriptor flag is not updated last, which may cause virtio read the incomplete packet. For example, given a packet uses 64 descriptors, and virtio ring size is 256, and

[PATCH v3] vhost: fix packed ring descriptor update in async enqueue

2021-11-15 Thread Jiayu Hu
If the packet uses multiple descriptors and its descriptor indices are wrapped, the first descriptor flag is not updated last, which may cause virtio read the incomplete packet. For example, given a packet uses 64 descriptors, and virtio ring size is 256, and its descriptor indices are 224~255 and