On 6/20/2024 8:10 AM, Morten Brørup wrote: >> From: Frank Du [mailto:frank...@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: sta...@dpdk.org >> >> Signed-off-by: Frank Du <frank...@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 <m...@smartsharesystems.com> >
Acked-by: Ferruh Yigit <ferruh.yi...@amd.com> Applied to dpdk-next-net/main, thanks.