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: sta...@dpdk.org
Signed-off-by: Li RongQing <lirongq...@baidu.com>
Signed-off-by: Dongsheng Rong <rongdongsh...@baidu.com>
Acked-by: Ciara Loftus <ciara.lof...@intel.com>
Applied to dpdk-next-net/main, thanks.