[PATCH v5] net/af_xdp: parse umem map info from mempool range api
Morten Brørup
mb at smartsharesystems.com
Thu Jun 20 09:10:46 CEST 2024
> From: Frank Du [mailto:frank.du at intel.com]
>
> The current calculation assumes that the mbufs are contiguous. However,
> this assumption is incorrect when the mbuf memory spans across huge page.
>
> Correct to directly read with mempool get range API.
>
> Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks")
> Cc: stable at dpdk.org
>
> Signed-off-by: Frank Du <frank.du at intel.com>
>
> ---
> v2:
> * Add virtual contiguous detect for for multiple memhdrs
> v3:
> * Use RTE_ALIGN_FLOOR to get the aligned addr
> * Add check on the first memhdr of memory chunks
> v4:
> * Replace the iterating with simple nb_mem_chunks check
> v5:
> * Use rte_mempool_get_mem_range to query the mempool range
> ---
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list