Re: [PATH 1/2] vhost: fix descs count in async vhost packed ring

2022-10-03 Thread Maxime Coquelin
On 8/22/22 06:31, Cheng Jiang wrote: When vhost receive packets from the front-end using packed virtqueue, it receives* might use multiple descriptors for one packet, so we need calculate and so we need to* record the descriptor number for each packet to update available descriptor cou

[PATH 1/2] vhost: fix descs count in async vhost packed ring

2022-08-21 Thread Cheng Jiang
When vhost receive packets from the front-end using packed virtqueue, it might use multiple descriptors for one packet, so we need calculate and record the descriptor number for each packet to update available descriptor counter and used descriptor counter, and rollback when DMA ring is full. Sign