numam-dpdk/app
Olivier Matz 1aadacb5b0 hash: fix allocation of an existing object
Change rte_hash*_create() functions to return NULL and set rte_errno to
EEXIST when the object name already exists. This is the behavior
described in the API documentation in the header file.

These functions were returning a pointer to the existing object in that
case, but it is a problem as the caller did not know if the object had
to be freed or not.

Doing this change also makes the hash API more consistent with the other
APIs (mempool, rings, ...).

Fixes: 916e4f4f4e ("memory: fix for multi process support")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2016-04-06 17:30:48 +02:00
..
cmdline_test
proc_info config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
test hash: fix allocation of an existing object 2016-04-06 17:30:48 +02:00
test-acl
test-pipeline ethdev: use constants for link state 2016-04-01 21:38:34 +02:00
test-pmd ethdev: add 100G link speed 2016-04-01 21:38:34 +02:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00