> -----Original Message-----
> From: Cheng Jiang <cheng1.ji...@intel.com>
> Sent: Tuesday, October 11, 2022 11:08 AM
> To: maxime.coque...@redhat.com; Xia, Chenbo <chenbo....@intel.com>
> Cc: dev@dpdk.org; Hu, Jiayu <jiayu...@intel.com>; Ding, Xuan
> <xuan.d...@intel.com>; Ma, WenwuX <wenwux...@intel.com>; Wang,
> YuanX <yuanx.w...@intel.com>; Yang, YvonneX
> <yvonnex.y...@intel.com>; He, Xingguang <xingguang...@intel.com>;
> Jiang, Cheng1 <cheng1.ji...@intel.com>; 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 should be ring_size - 1, if the slot_idx is
> currently 0, since the ring size is not necessarily the power of 2.
> 
> Fixes: 84d5204310d7 ("vhost: support async dequeue for split ring")
> Fixes: fe8477ebbd94 ("vhost: support async packed ring dequeue")
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Cheng Jiang <cheng1.ji...@intel.com>
> ---
Tested-by: Wei Ling <weix.l...@intel.com>

Reply via email to