Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-09-07 Thread Chas Williams
t; > Cc: olivier.m...@6wind.com; cw8...@att.com > > Subject: Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging > > > > On Wed, 2017-09-06 at 11:58 +, Ananyev, Konstantin wrote: > > > > > > > -Original Message- > > > >

Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-09-06 Thread Ananyev, Konstantin
M > > > To: Nicolau, Radu ; dev@dpdk.org > > > Cc: olivier.m...@6wind.com; cw8...@att.com > > > Subject: Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging > > > > > > [Note: My former email address is going away eventually. I am moving the > > &

Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-09-06 Thread Chas Williams
er.m...@6wind.com; cw8...@att.com > > Subject: Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging > > > > [Note: My former email address is going away eventually. I am moving the > > conversation to my other email address which is a bit more permanent.] >

Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-09-06 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Chas Williams > Sent: Wednesday, September 6, 2017 11:46 AM > To: Nicolau, Radu ; dev@dpdk.org > Cc: olivier.m...@6wind.com; cw8...@att.com > Subject: Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt

Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-09-06 Thread Chas Williams
[Note: My former email address is going away eventually. I am moving the conversation to my other email address which is a bit more permanent.] On Mon, 2017-09-04 at 15:27 +0100, Radu Nicolau wrote: > > On 8/7/2017 5:11 PM, Charles (Chas) Williams wrote: > > After commit 8f094a9ac5d7 ("mbuf: set

Re: [dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-09-04 Thread Radu Nicolau
On 8/7/2017 5:11 PM, Charles (Chas) Williams wrote: After commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool") is it much harder to detect a "double free". If the developer makes a copy of an mbuf pointer and frees it twice, this condition is never detected and the mbuf gets returned to

[dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-08-07 Thread Charles (Chas) Williams
After commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool") is it much harder to detect a "double free". If the developer makes a copy of an mbuf pointer and frees it twice, this condition is never detected and the mbuf gets returned to the pool twice. Since this requires extra work to trac