Re: [dpdk-dev] [PATCH] kni: fix unit test segfault

2017-05-05 Thread Thomas Monjalon
03/05/2017 18:10, Ferruh Yigit: > To clean alloc_q, which has physicall addresses of the mbufs, kni lib > free the pkt_mempool, but this leads a crash in kni unit test. > > KNI library shouldn't free the pkt_mempool. > > Implementation updated to find the mbufs in the alloc_q and return them > ba

Re: [dpdk-dev] [PATCH] kni: fix unit test segfault

2017-05-04 Thread Ferruh Yigit
On 5/4/2017 6:23 AM, gowrishankar muthukrishnan wrote: > Hi Ferruh, > Even w/o this patch, I mostly find mbufs returned by rte_kni_rx_burst() > always 0 > (or sometimes 1) where as more than 32000 mbufs approx created in > ingress side > for this test. > >dpdk/test/test $ ./test -l 0,1,2 --s

Re: [dpdk-dev] [PATCH] kni: fix unit test segfault

2017-05-03 Thread gowrishankar muthukrishnan
Hi Ferruh, Even w/o this patch, I mostly find mbufs returned by rte_kni_rx_burst() always 0 (or sometimes 1) where as more than 32000 mbufs approx created in ingress side for this test. dpdk/test/test $ ./test -l 0,1,2 --socket-mem 1024 Am I missing something required for this unit test ?.

[dpdk-dev] [PATCH] kni: fix unit test segfault

2017-05-03 Thread Ferruh Yigit
To clean alloc_q, which has physicall addresses of the mbufs, kni lib free the pkt_mempool, but this leads a crash in kni unit test. KNI library shouldn't free the pkt_mempool. Implementation updated to find the mbufs in the alloc_q and return them back to mempool. Fixes: 8eba5ebd1811 ("kni: fix