[dpdk-stable] [PATCH][V2] net/af_xdp: avoid deadlock due to empty fill queue

Ferruh Yigit ferruh.yigit at intel.com
Tue Sep 22 15:04:19 CEST 2020


On 9/18/2020 12:32 PM, Li RongQing wrote:
> when receive packets, it is possible to fail to reserve
> fill queue, since buffer ring is shared between tx and rx,
> and maybe not available temporary. at last, both fill
> queue and rx queue are empty.
> 
> then kernel side will be unable to receive packets due to
> empty fill queue, and dpdk will be unable to reserve fill
> queue because dpdk has not pakcets to receive, at last
> deadlock will happen
> 
> so move reserve fill queue before xsk_ring_cons__peek
> to fix it
 >
 > Cc: stable at dpdk.org
> 
> Signed-off-by: Li RongQing <lirongqing at baidu.com>
> Signed-off-by: Dongsheng Rong <rongdongsheng at baidu.com>
> Acked-by: Ciara Loftus <ciara.loftus at intel.com>

Applied to dpdk-next-net/main, thanks.


More information about the stable mailing list