Re: [dpdk-dev] [PATCH v6 2/2] kni: Use bulk functions to allocate and free mbufs

2017-01-25 Thread Ferruh Yigit
On 1/19/2017 4:46 AM, Sergey Vyazmitinov wrote: > Optimized kni_allocate_mbufs and kni_free_mbufs by using mbuf > bulk functions. This can improve performance more than two times. > > Signed-off-by: Sergey Vyazmitinov > --- > v5: > * use rte_pktmbuf_free_bulk for removing packets which was not >

[dpdk-dev] [PATCH v6 2/2] kni: Use bulk functions to allocate and free mbufs

2017-01-18 Thread Sergey Vyazmitinov
Optimized kni_allocate_mbufs and kni_free_mbufs by using mbuf bulk functions. This can improve performance more than two times. Signed-off-by: Sergey Vyazmitinov --- v5: * use rte_pktmbuf_free_bulk for removing packets which was not put in alloc queue. v6: * fix c99 compilation error --- lib/lib