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

2022-10-24 Thread Xia, Chenbo
; sta...@dpdk.org > Subject: [PATCH v2 2/2] vhost: fix slot index calculation in async vhost > > 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 sho

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
; sta...@dpdk.org > Subject: [PATCH v2 2/2] vhost: fix slot index calculation in async vhost > > 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 s

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

2022-10-10 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 decreased 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. Fixe