RE: [PATH 2/2] vhost: fix slot index calculation in async vhost

2022-10-10 Thread Jiang, Cheng1
Hi, > -Original Message- > From: Maxime Coquelin > Sent: Monday, October 3, 2022 6:10 PM > To: Jiang, Cheng1 ; Xia, Chenbo > > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Wang, > YuanX ; Yang, YvonneX > ; He, Xingguang > Subject: Re: [P

Re: [PATH 2/2] vhost: fix slot index calculation in async vhost

2022-10-03 Thread Maxime Coquelin
On 8/22/22 06:31, Cheng Jiang wrote: When the packet receiving failure and the DMA ring full occur simultaneously in the asynchronous vhost, the slot_idx needs to be reduced by 1. For packed virtqueue, the slot index should be s/reduced/decreased/ ring_size - 1, if the slot_idx is currentl

[PATH 2/2] vhost: fix slot index calculation in async vhost

2022-08-21 Thread Cheng Jiang
When the packet receiving failure and the DMA ring full occur simultaneously in the asynchronous vhost, the slot_idx needs to be reduced by 1. For packed virtqueue, the slot index should be ring_size - 1, if the slot_idx is currently 0, since the ring size is not necessarily the power of 2. Signed