[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 Thomas Monjalon
2016-05-17 13:44, Ananyev, Konstantin: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-05-17 12:59, Ananyev, Konstantin: > > > > > The rte_pktmbuf_detach() function should decrease refcnt on a direct > > > > > buffer. > > > > > > > > As you have noticed, "whenever the indirec

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

2016-05-17 Thread Ananyev, Konstantin
> -Original 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 ref

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

2016-05-17 Thread Thomas Monjalon
2016-05-17 12:59, Ananyev, Konstantin: > > > The rte_pktmbuf_detach() function should decrease refcnt on a direct > > > buffer. > > > > As you have noticed, "whenever the indirect buffer is detached, > > the reference counter on the direct buffer is decremented." > > So the current behaviour of rt

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

2016-05-17 Thread Thomas Monjalon
2016-05-17 01:53, 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. As you have noticed, "whenever the indirect buffer is deta

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

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

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

2016-05-17 Thread Ananyev, Konstantin
Hi Thomas, > > 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. > > As you have noticed, "whenever the indirect buffer is detached,

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

2016-05-17 Thread Bruce Richardson
On Tue, May 17, 2016 at 01:53:20AM +0900, Hiroyuki Mikita wrote: > 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

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

2016-05-17 Thread Ananyev, Konstantin
Hi Hiroyuki, > > 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 refcn

[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() and rte_p