On 6/20/2024 8:10 AM, Morten Brørup wrote: >> From: Frank Du [mailto:[email protected]] >> >> 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: [email protected] >> >> Signed-off-by: Frank Du <[email protected]> >> >> --- >> 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 <[email protected]> >
Acked-by: Ferruh Yigit <[email protected]> Applied to dpdk-next-net/main, thanks.

