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

2017-09-20 Thread Olivier MATZ
Hi Chas, On Thu, Sep 07, 2017 at 05:21:51PM -0400, 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 detec

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

2017-09-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