f82f705b63
Change rte_lpm*_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 lpm API more consistent with the other
APIs (mempool, rings, ...).
Fixes:
|
||
---|---|---|
.. | ||
contributing | ||
cryptodevs | ||
faq | ||
freebsd_gsg | ||
linux_gsg | ||
nics | ||
prog_guide | ||
rel_notes | ||
sample_app_ug | ||
testpmd_app_ug | ||
xen | ||
conf.py | ||
index.rst |