From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id EEED71B897 for ; Thu, 1 Feb 2018 02:52:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2018 17:52:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,442,1511856000"; d="scan'208";a="23814506" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 31 Jan 2018 17:52:13 -0800 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 31 Jan 2018 17:52:13 -0800 Received: from bgsmsx153.gar.corp.intel.com (10.224.23.4) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 31 Jan 2018 17:52:13 -0800 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.25]) by BGSMSX153.gar.corp.intel.com ([169.254.2.201]) with mapi id 14.03.0319.002; Thu, 1 Feb 2018 07:22:10 +0530 From: "Yang, Zhiyong" To: Pavan Nikhilesh , "thomas@monjalon.net" , "Yigit, Ferruh" , "olivier.matz@6wind.com" , "De Lara Guarch, Pablo" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] lpm: fix allocation of an existing object Thread-Index: AQHTmfuHk5QeQFZ7DU+czCW2VNIjGKOOyTtg Date: Thu, 1 Feb 2018 01:52:09 +0000 Message-ID: References: <20180130185154.20095-1-pbhagavatula@caviumnetworks.com> In-Reply-To: <20180130185154.20095-1-pbhagavatula@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] lpm: fix allocation of an existing object X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 01:52:15 -0000 Hi Pavan, Good catch! Thank you for fixing it. It's my negligence. =20 Thanks Zhiyong > -----Original Message----- > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > Sent: Wednesday, January 31, 2018 2:52 AM > To: thomas@monjalon.net; Yang, Zhiyong ; Yigit, > Ferruh ; olivier.matz@6wind.com; De Lara Guarch, > Pablo > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH] lpm: fix allocation of an existing object >=20 > Fix rte_lpm_create_*() functions to return NULL and set rte_errno to EEXI= ST > when lpm object name already exists. > This is the behavior described in the API documentation in the header fil= e. >=20 > Fixes: 134975073af3 ("lib: remove unnecessary pointer cast") >=20 > Signed-off-by: Pavan Nikhilesh > ---