From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id EDF897CB6 for ; Mon, 5 Jun 2017 18:24:21 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 98519209C2; Mon, 5 Jun 2017 12:24:21 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 05 Jun 2017 12:24:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=zoONzcw0bObhckm xSO8sxxijxW/9fsDjsdrKWWVghaQ=; b=dXZVIOou4PD/xsdm9aiM2jgmbxW1S70 DpUVMZc+My8il+voSsB0R1FvxBkhPzDPaPg6po/4gPWINP7705yUcBzLkvnM2Rqy Fxt/UyEDBqnuLMSp2o0xch/eRkcAFRnMyPJz0hNhfU5lDKm8AUQGx58ibV/GXT5v QvnoxGQGPQQA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=zoONzcw0bObhckmxSO8sxxijxW/9fsDjsdrKWWVghaQ=; b=RCaeSB0i mCpLW6fYwSk2VUQiukrjisKlfISo19YLaF3tsEMzpwreqBNRtrtBgrRO+N7fMzT7 xlcmTcYCmq65kxwAiVKiyeYssoDNWwAQXNy0zwwo1Q9e0bfoDYSCUdBhSeW5P7wC 0hpHDNSLAm6Fxv/QNbrEnGC8V0dbl2mhaj83P976rutz7Dcq3rDmpL8k5hhJ2xq6 8VxlI4d1ubD3VwOtuyhPY281HlN8Zqj9bfDBbfIDlQKODiYXZ8HA+sXPWRRsmwtc Sh/9C/8xnVLAZQlIYDuTPiC72qDcqVQX8zLovdKPz8B20C5xMSoPJA6YIMEjFooW mO8sdsy5Vdo2NQ== X-ME-Sender: X-Sasl-enc: j7us0fhB7NR6y5UnoIJfBKxR8ZCbMuQGdWlZQQEGb1TD 1496679861 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 39F7D24772; Mon, 5 Jun 2017 12:24:21 -0400 (EDT) From: Thomas Monjalon To: Tonghao Zhang Cc: dev@dpdk.org, Bruce Richardson Date: Mon, 05 Jun 2017 18:24:20 +0200 Message-ID: <2684435.WV1LPMSqPV@xps> In-Reply-To: <20170512084220.GB53020@bricha3-MOBL3.ger.corp.intel.com> References: <1494569023-7564-1-git-send-email-nic@opencloud.tech> <20170512084220.GB53020@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] memzone: Check socket_id value when creating memzone. 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: Mon, 05 Jun 2017 16:24:22 -0000 12/05/2017 10:42, Bruce Richardson: > On Thu, May 11, 2017 at 11:03:43PM -0700, Tonghao Zhang wrote: > > If the socket_id is invalid (e.g. -2, -3), the > > memzone_reserve_aligned_thread_unsafe should return the > > EINVAL and not ENOMEM. To avoid it, we should check the > > socket_id before calling malloc_heap_alloc. > > > > Signed-off-by: Tonghao Zhang > > Looks a sensible thing to do. > > Acked-by: Bruce Richardson Applied, thanks