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

2022-10-24 Thread Xia, Chenbo
> -Original Message- > From: Jiang, Cheng1 > Sent: Tuesday, October 11, 2022 11:08 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Wang, YuanX > ; Yang, YvonneX ; He, > Xingguang ; Jiang, Cheng1 ; > sta...@dpdk.org > Subject: [P

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

2022-10-21 Thread Maxime Coquelin
On 10/11/22 05:08, 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 decreased by 1. For packed virtqueue, the slot index should be ring_size - 1, if the slot_idx is currently 0, since the ring si

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

2022-10-13 Thread Ling, WeiX
> -Original Message- > From: Cheng Jiang > Sent: Tuesday, October 11, 2022 11:08 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Wang, > YuanX ; Yang, YvonneX > ; He, Xingguang ; > Jiang, Cheng1 ; sta...@dpdk.org > Subject: [PAT