[dpdk-dev] [PATCH][v4] net/af_xdp: optimize RX path by removing the unneeded allocation mbuf

Ferruh Yigit ferruh.yigit at intel.com
Tue Dec 8 14:00:43 CET 2020


On 11/25/2020 1:03 PM, Loftus, Ciara wrote:
>> Subject: [dpdk-dev] [PATCH][v4] net/af_xdp: optimize RX path by removing
>> the unneeded allocation mbuf
>>
>> when receive packets, the max bunch number of mbuf are allocated
>> if hardware does not receive the max bunch number packets, it
>> will free redundancy mbuf, this is low performance
>>
>> so optimize rx performance, by allocating number of mbuf based on
>> result of xsk_ring_cons__peek, to avoid to redundancy allocation,
>> and free mbuf when receive packets
>>
>> and rx cached_cons must be rollbacked if fail to allocating mbuf,
>> found by Ciara Loftus
>>
>> Signed-off-by: Li RongQing <lirongqing at baidu.com>
>> Signed-off-by: Dongsheng Rong <rongdongsheng at baidu.com>
> 
> Thanks for the v4.
> 
> Acked-by: Ciara Loftus <ciara.loftus at intel.com>
> 

Applied to dpdk-next-net/main, thanks.



More information about the dev mailing list