[dpdk-dev] [PATCH] mempool: fix check flags

2016-09-09 Thread Hiroyuki Mikita
Sorry, I did not notice the same kind of patch. I close this patch. Hiroyuki 2016-09-08 23:46 GMT+09:00 Olivier Matz : > Hi Hiroki, Ferruh, > > On 09/08/2016 04:44 PM, Ferruh Yigit wrote: >> On 9/8/2016 3:28 PM, Hiroyuki Mikita wrote: >>> fix check flags in case of si

[dpdk-dev] [PATCH] mempool: fix check flags

2016-09-09 Thread Hiroyuki Mikita
fix check flags in case of single producer and single consumer Fixes: 449c49b9 ("mempool: support handler operations") Signed-off-by: Hiroyuki Mikita --- lib/librte_mempool/rte_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mempool/rte_mempo

[dpdk-dev] [PATCH v2] sched: fix releasing enqueued packets

2016-09-06 Thread Hiroyuki Mikita
rte_sched_port_free should release only enqueued packets of all queues. Previous behavior is that enqueued and already dequeued packets of only first 4 queues are released. Fixes: 61383240 ("sched: release enqueued mbufs when freeing port") Signed-off-by: Hiroyuki Mikita ---

[dpdk-dev] [PATCH] sched: fix releasing enqueued packets

2016-09-01 Thread Hiroyuki Mikita
rte_sched_port_free should release only enqueued packets of all queues. Previous behavior is that enqueued and already dequeued packets of only first 4 queues are released. Fixes: 61383240 ("sched: release enqueued mbufs when freeing port") Signed-off-by: Hiroyuki Mikita --- lib/li

[dpdk-dev] [PATCH] timer: fix incorrect pending-list manipulation

2016-07-26 Thread Hiroyuki Mikita
Fixes: 9b15ba895b9f ("timer: use a skip list") 2016-07-23 7:05 GMT+09:00 Sanford, Robert : > > > On 7/17/16 10:35 AM, "Hiroyuki Mikita" wrote: > >>This commit fixes incorrect pending-list manipulation >>when getting list of expired timers in rte_time

[dpdk-dev] [PATCH] timer: remove unnecessary timer add call

2016-07-26 Thread Hiroyuki Mikita
Fixes: a4b7a5a45cf5 ("timer: fix race condition") 2016-07-23 7:06 GMT+09:00 Sanford, Robert : > > > On 7/17/16 1:35 PM, "Hiroyuki Mikita" wrote: > >>When timer_set_running_state() fails in rte_timer_manage(), >>the failed timer is put back on pend

[dpdk-dev] [PATCH] timer: fix break list when timer_cb reset running timer

2016-07-26 Thread Hiroyuki Mikita
Fixes: a4b7a5a45cf5 ("timer: fix race condition") 2016-07-25 23:43 GMT+09:00 Thomas Monjalon : > Hiroyuki, Robert, > I would like to apply these patches quickly. > Please could you provide some "Fixes:" line to know the origin > of the bugs? > Thanks >

[dpdk-dev] [PATCH] timer: fix break list when timer_cb reset running timer

2016-07-26 Thread Hiroyuki Mikita
Hi Robert, My application had timers which reset another timer and sometimes did not work. Its profile by 'perf' command showed timer_add occupied 99.9% CPU. It seemed that an infinite loop occurred in rte_timer. I inspected timer codes and found that the main cause was a bug of the patch 3. In

[dpdk-dev] [PATCH] timer: fix break list when timer_cb reset running timer

2016-07-21 Thread Hiroyuki Mikita
Hi Robert, Thank you for reviewing. In the following case, the skip list is broken. - Timer A and timer B are configured on the same lcore, in the same pending list. - The expire time of timer A is earlier than that of timer B. - rte_timer_manage() is called on the lcore after the expire time of

[dpdk-dev] [PATCH] timer: fix break list when timer_cb reset running timer

2016-07-18 Thread Hiroyuki Mikita
When timer_cb resets another running timer on the same lcore, the list of expired timers is chained to the pending-list. This commit prevents a running timer from being reset by not its own timer_cb. Signed-off-by: Hiroyuki Mikita --- lib/librte_timer/rte_timer.c | 12 ++-- 1 file

[dpdk-dev] [PATCH] timer: remove unnecessary timer add call

2016-07-18 Thread Hiroyuki Mikita
When timer_set_running_state() fails in rte_timer_manage(), the failed timer is put back on pending-list. In this case, another core tries to reset or stop the timer. It does not need to be on pending-list Signed-off-by: Hiroyuki Mikita --- lib/librte_timer/rte_timer.c | 5 ++--- 1 file changed

[dpdk-dev] [PATCH] timer: fix incorrect pending-list manipulation

2016-07-18 Thread Hiroyuki Mikita
the list. Signed-off-by: Hiroyuki Mikita --- lib/librte_timer/rte_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 3dcdab5..7457d32 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -543,6

[dpdk-dev] [PATCH] ip_frag: fix doxygen formatting

2016-07-07 Thread Hiroyuki Mikita
This commit fixes some functions missing in API documentation. Signed-off-by: Hiroyuki Mikita --- lib/librte_ip_frag/rte_ip_frag.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h index

[dpdk-dev] [PATCH] ethdev: fix formatting of doxygen comments

2016-06-18 Thread Hiroyuki Mikita
This commit fixes some functions missing in API documentation. Signed-off-by: Hiroyuki Mikita --- lib/librte_ether/rte_ethdev.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index bd93bf6..2698c3e

[dpdk-dev] [PATCH v3] e1000: fix build with clang

2016-05-26 Thread Hiroyuki Mikita
GCC_VERSION is empty in case of clang: /bin/sh: line 0: test: -ge: unary operator expected It is the same issue as http://dpdk.org/dev/patchwork/patch/5994/ Fixes: 366113dbfb69 ("e1000: suppress misleading indentation warning") Signed-off-by: Hiroyuki Mikita ---

[dpdk-dev] [PATCH v2] e1000: fix build with clang

2016-05-26 Thread Hiroyuki Mikita
Hi Thomas, > The output of git grep '(CC)' shows that there is some room for > cross-compilation fixes. > Any volunteer? > OK. I will send another patch after merging this. This is just a fix for clang build. Regards, Hiroyuki

[dpdk-dev] [PATCH] e1000: fix build with clang

2016-05-25 Thread Hiroyuki Mikita
GCC_VERSION is empty in case of clang: /bin/sh: line 0: test: -ge: unary operator expected It is the same issue as http://dpdk.org/dev/patchwork/patch/5994/ Fixes: 366113dbfb69 ("e1000: suppress misleading indentation warning") Signed-off-by: Hiroyuki Mikita --- drivers

[dpdk-dev] [PATCH v4] mbuf: decrease refcnt when detaching

2016-05-19 Thread Hiroyuki Mikita
The rte_pktmbuf_detach() function should decrease refcnt on a direct buffer. Signed-off-by: Hiroyuki Mikita --- v4: * fixed formatting. * fixed doxygen comments of rte_pktmbuf_detach() to be clearer. v3: * fixed rte_pktmbuf_detach() to decrease refcnt. * free the direct mbuf when refcnt becomes

[dpdk-dev] [PATCH v3] mbuf: decrease refcnt when detaching

2016-05-19 Thread Hiroyuki Mikita
you can check them by using checkpatch: > > DPDK_CHECKPATCH_PATH=/path/to/linux/checkpatch.pl \ > scripts/checkpatches.sh file.patch > > > On 05/17/2016 06:35 PM, Hiroyuki Mikita wrote: >> The rte_pktmbuf_detach() function should decrease refcnt on a direct >&

[dpdk-dev] [PATCH v3] mbuf: decrease refcnt when detaching

2016-05-18 Thread Hiroyuki Mikita
The rte_pktmbuf_detach() function should decrease refcnt on a direct buffer. Signed-off-by: Hiroyuki Mikita --- v3: * fixed rte_pktmbuf_detach() to decrease refcnt. * free the direct mbuf when refcnt becomes 0. * added this issue to Resolved Issues in release notes. v2: * introduced a new

[dpdk-dev] [PATCH v2] mbuf: decrease refcnt when detaching

2016-05-18 Thread Hiroyuki MIKITA
inal Message- >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] >> Sent: Tuesday, May 17, 2016 3:19 PM >> To: Ananyev, Konstantin >> Cc: dev at dpdk.org; Hiroyuki Mikita; olivier.matz at 6wind.com >> Subject: Re: [dpdk-dev] [PATCH v2] mbuf: decrease refcnt when

[dpdk-dev] [PATCH v2] mbuf: decrease refcnt when detaching

2016-05-17 Thread Hiroyuki Mikita
The rte_pktmbuf_detach() function should decrease refcnt on a direct buffer. Signed-off-by: Hiroyuki Mikita --- v2: * introduced a new function rte_pktmbuf_detach2() which decrease refcnt. * marked rte_pktmbuf_detach() as deprecated. * added comments about refcnt to rte_pktmbuf_attach

[dpdk-dev] [PATCH] mbuf: decrease refcnt when detaching

2016-05-17 Thread Hiroyuki MIKITA
Hi all, Thanks for suggestions. I think the Oliver's first option is good. I introduce the new function and will replace rte_pktmbuf_detach() with it in a future release. 2016-05-16 18:13 GMT+09:00 Thomas Monjalon : > 2016-05-16 11:46, Hiroyuki MIKITA: >> Now, the attach operation

[dpdk-dev] [PATCH] mbuf: decrease refcnt when detaching

2016-05-16 Thread Hiroyuki MIKITA
; >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Hiroyuki Mikita >> Sent: Sunday, May 15, 2016 4:51 PM >> To: olivier.matz at 6wind.com >> Cc: dev at dpdk.org >> Subject: [dpdk-dev] [PATCH] mbuf: decrease refcnt when detaching

[dpdk-dev] [PATCH] mbuf: decrease refcnt when detaching

2016-05-16 Thread Hiroyuki Mikita
The rte_pktmbuf_detach() function should decrease refcnt on a direct buffer. Signed-off-by: Hiroyuki Mikita --- lib/librte_mbuf/rte_mbuf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 529debb..3b117ca 100644