Hi Pavan, Good catch! Thank you for fixing it. It's my negligence.
Thanks Zhiyong > -----Original Message----- > From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com] > Sent: Wednesday, January 31, 2018 2:52 AM > To: tho...@monjalon.net; Yang, Zhiyong <zhiyong.y...@intel.com>; Yigit, > Ferruh <ferruh.yi...@intel.com>; olivier.m...@6wind.com; De Lara Guarch, > Pablo <pablo.de.lara.gua...@intel.com> > Cc: dev@dpdk.org; Pavan Nikhilesh <pbhagavat...@caviumnetworks.com> > Subject: [dpdk-dev] [PATCH] lpm: fix allocation of an existing object > > Fix rte_lpm_create_*() functions to return NULL and set rte_errno to EEXIST > when lpm object name already exists. > This is the behavior described in the API documentation in the header file. > > Fixes: 134975073af3 ("lib: remove unnecessary pointer cast") > > Signed-off-by: Pavan Nikhilesh <pbhagavat...@caviumnetworks.com> > ---