[Patch v4] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX mbufs
    Stephen Hemminger 
    stephen at networkplumber.org
       
    Fri Feb  2 17:24:49 CET 2024
    
    
  
On Thu,  1 Feb 2024 17:19:21 -0800
longli at linuxonhyperv.com wrote:
> From: Long Li <longli at microsoft.com>
> 
> Instead of allocating mbufs one by one during RX, use
> rte_pktmbuf_alloc_bulk() to allocate them in a batch.
> 
> With this patch, there are no measurable performance improvements in
> benchmarks. However, this patch should improve CPU cycles and reduce
> potential locking conflicts in real-world applications.
> 
> Signed-off-by: Long Li <longli at microsoft.com>
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
    
    
More information about the dev
mailing list