[PATCH v5] net/af_xdp: parse umem map info from mempool range api
Ferruh Yigit
ferruh.yigit at amd.com
Sat Jul 6 05:40:52 CEST 2024
On 6/20/2024 8:10 AM, Morten Brørup wrote:
>> 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>
>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list