[dpdk-dev] [RFC] hash/lpm: return NULL if the object exists

2016-03-25 Thread Olivier Matz
Hi Bruce, On 03/15/2016 01:25 PM, Olivier Matz wrote: > Seen by trying to fix the func_reentrancy autotest. The test > was doing the following on several cores in parallel: > > name = "common_name"; > do several times { > obj = allocate_an_object(name) // obj = ring, mempool, hash, lp

[dpdk-dev] [RFC] hash/lpm: return NULL if the object exists

2016-03-25 Thread Bruce Richardson
On Fri, Mar 25, 2016 at 11:32:47AM +0100, Olivier Matz wrote: > Hi Bruce, > > On 03/15/2016 01:25 PM, Olivier Matz wrote: > > Seen by trying to fix the func_reentrancy autotest. The test > > was doing the following on several cores in parallel: > > > > name = "common_name"; > > do several tim

[dpdk-dev] [RFC] hash/lpm: return NULL if the object exists

2016-03-15 Thread Olivier Matz
Seen by trying to fix the func_reentrancy autotest. The test was doing the following on several cores in parallel: name = "common_name"; do several times { obj = allocate_an_object(name) // obj = ring, mempool, hash, lpm, ... if (obj == NULL && lookup(name) == NULL) ret