[dpdk-dev] [PATCH v6 1/2] kni: add bulk function to free mbufs

2017-01-18 Thread Sergey Vyazmitinov
Suggested-by: Stephen Hemminger Signed-off-by: Sergey Vyazmitinov --- v3: * Fixed issue with possible different mempools in buffer list. * Fixed issue with wrong rte_pktmbuf_alloc_bulk function return value processing in the kni_allocate_mbufs. --- lib/librte_mbuf/rte_mbuf.h | 49

[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

[dpdk-dev] [PATCH v6 0/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 Sergey Vyazmitinov (2): kni: add bulk function to free mbufs kni: Use bulk functions to allocate and free mbufs lib/librte_kni/rte_kni.c | 47 +++-- lib/librte_kni

[dpdk-dev] [PATCH v5 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. --- lib/librte_kni/rte_kni.c | 47

[dpdk-dev] [PATCH v5 1/2] kni: add bulk function to free mbufs

2017-01-18 Thread Sergey Vyazmitinov
Suggested-by: Stephen Hemminger Signed-off-by: Sergey Vyazmitinov --- v3: * Fixed issue with possible different mempools in buffer list. * Fixed issue with wrong rte_pktmbuf_alloc_bulk function return value processing in the kni_allocate_mbufs. --- lib/librte_mbuf/rte_mbuf.h | 49

[dpdk-dev] [PATCH v5 0/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 Sergey Vyazmitinov (2): kni: add bulk function to free mbufs kni: Use bulk functions to allocate and free mbufs lib/librte_kni/rte_kni.c | 47 +++-- lib/librte_kni

Re: [dpdk-dev] [PATCH] kni: fast data availability check in thread_single loop

2017-01-18 Thread Sergey Vyazmitinov
On Thu, Jan 12, 2017 at 12:29 AM, Ferruh Yigit wrote: > On 12/29/2016 11:23 PM, Sergey Vyazmitinov wrote: > > This allow to significant reduces packets processing latency. > > > > Signed-off-by: Sergey Vyazmitinov > > --- > > .../linuxapp/eal/inclu

[dpdk-dev] [PATCH v4 1/2] kni: add bulk function to free mbufs

2017-01-18 Thread Sergey Vyazmitinov
Suggested-by: Stephen Hemminger Signed-off-by: Sergey Vyazmitinov --- v3: * Fixed issue with possible different mempools in buffer list. * Fixed issue with wrong rte_pktmbuf_alloc_bulk function return value processing in the kni_allocate_mbufs. --- lib/librte_mbuf/rte_mbuf.h | 49

[dpdk-dev] [PATCH v4 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 --- lib/librte_kni/rte_kni.c | 46 +-- lib/librte_kni/rte_kni_fifo.h | 18

[dpdk-dev] [PATCH v4 0/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 Sergey Vyazmitinov (2): kni: add bulk function to free mbufs kni: Use bulk functions to allocate and free mbufs lib/librte_kni/rte_kni.c | 46 +++- lib/librte_kni

[dpdk-dev] [PATCH] kni: add bulk function to free mbufs

2017-01-18 Thread Sergey Vyazmitinov
Suggested-by: Stephen Hemminger Signed-off-by: Sergey Vyazmitinov --- v3: * Fixed issue with possible different mempools in buffer list. * Fixed issue with wrong rte_pktmbuf_alloc_bulk function return value processing in the kni_allocate_mbufs. --- lib/librte_mbuf/rte_mbuf.h | 49

[dpdk-dev] [PATCH v3] 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 --- v2: * CSG fixes. v3: * Fixed issue with possible different mempools in buffer list. * Fixed issue with wrong

[dpdk-dev] [PATCH v3] 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 --- v2: * CSG fixes. v3: * Fixed issue with possible different mempools in buffer list. * Fixed issue with wrong

[dpdk-dev] [PATCH] kni: fast data availability check in thread_single loop

2017-01-10 Thread Sergey Vyazmitinov
This allow to significant reduces packets processing latency. Signed-off-by: Sergey Vyazmitinov --- .../linuxapp/eal/include/exec-env/rte_kni_common.h | 6 lib/librte_eal/linuxapp/kni/kni_misc.c | 33 -- 2 files changed, 30 insertions(+), 9 deletions

[dpdk-dev] [PATCH v2] kni: use bulk functions to allocate and free mbufs

2017-01-10 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 --- lib/librte_kni/rte_kni.c | 44 +++ lib/librte_kni/rte_kni_fifo.h | 18

[dpdk-dev] [PATCH] kni: use bulk functions to allocate and free mbufs

2017-01-10 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 --- lib/librte_kni/rte_kni.c | 44 +--- lib/librte_kni/rte_kni_fifo.h| 18