From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 559DA532D for ; Tue, 31 May 2016 11:27:48 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 31 May 2016 02:26:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,395,1459839600"; d="scan'208";a="987946463" Received: from dhunt5-mobl.ger.corp.intel.com (HELO [10.237.220.49]) ([10.237.220.49]) by orsmga002.jf.intel.com with ESMTP; 31 May 2016 02:26:26 -0700 To: Jan Viktorin References: <1463665501-18325-4-git-send-email-david.hunt@intel.com> <20160523144055.29288cd5@pcviktorin.fit.vutbr.cz> Cc: dev@dpdk.org, olivier.matz@6wind.com, yuanhan.liu@linux.intel.com, pmatilai@redhat.com From: "Hunt, David" Message-ID: <574D58C1.7080906@intel.com> Date: Tue, 31 May 2016 10:26:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160523144055.29288cd5@pcviktorin.fit.vutbr.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [dpdk-dev, v5, 3/3] mbuf: get default mempool handler from configuration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2016 09:27:48 -0000 On 5/23/2016 1:40 PM, Jan Viktorin wrote: > On Thu, 19 May 2016 14:45:01 +0100 > David Hunt wrote: --snip-- >> + mp = rte_mempool_create_empty(name, n, elt_size, cache_size, >> + sizeof(struct rte_pktmbuf_pool_private), socket_id, 0); >> + if (mp == NULL) >> + return NULL; >> + >> + rte_mempool_set_handler(mp, RTE_MBUF_DEFAULT_MEMPOOL_HANDLER); > Check for a failure is missing here. Especially -EEXIST. Done. --snip-- Thanks, Dave.