From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by dpdk.org (Postfix) with ESMTP id 6B0267CAE for ; Mon, 10 Jul 2017 10:10:54 +0200 (CEST) Received: by mail-lf0-f53.google.com with SMTP id b207so53281737lfg.2 for ; Mon, 10 Jul 2017 01:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Fz1OKRRorBcut7Qob1aMoMvlr0rK4fpJ80LlZ1fnRGQ=; b=nnM0iW2bRHyVOiRkbRhm+XWP7bcTxDEtg76zTuyhS6BAHJM9nFFdT9lNyPgcLAVDnP nDozR91CZhNJEgcpKZ1FS6ziEzN604OjwLbC6FOYHJ6TzYpmIPn5QA9Pg6/IkwP7G49X 82onecKrePwUJPYz+Vr2QvIEe5L5fSnWItl/LDVy1J9sDKooQPRY+0xOCUQZo8g0S9vi 4gIBP9VmzudHjLJ7txrF1D6w3ge28LwsapSFhMMUJ+v+XBNnlVwyrT3e/K4hK5LmW31j 3K0EdLQwd+BHOv4tJQT2huOHsPpzbmxtrFFmCTwPiYLw0mtfpvGbzgyl4lDzhfpUoM2F DSqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fz1OKRRorBcut7Qob1aMoMvlr0rK4fpJ80LlZ1fnRGQ=; b=e8i1uD9mId2XI3etxaroumz/AfQDNpEzVbK8+Mcj34EyoS1NW9LMIP8vp2JVo64hic 0VJSruKD5LjQdFv15RX79LaT8pIZWb7H7hqUnO9aO4TNArouf8QNPwBttfOoJ0GZMC7Q qpqSIqxrmigqqnlzKq4g+sMfhk2jzB7PAqcImpLKaCGAUBo8p3SYR1YdOptTB/jqAdfm BUY4x4OCQicqQdl29LJeMGMYCp9OyyJ13Q0xKLFWncMBoXPP60k1nOjz5AV9GwKwDaOF PlpzUx3x0eZIQk6c5PzfaTBktAJwGbmqWTY2tUE6cVpd0+kzW5HBo762acqaiMQyuxp6 dwCQ== X-Gm-Message-State: AIVw110D0GfuScIBaXUt7nye2g7RYUmTCEbukgFH2JU0ptPpIlHblcGA 9MxaRQgYbrddC/SN X-Received: by 10.80.192.154 with SMTP id k26mr10646306edf.136.1499674254016; Mon, 10 Jul 2017 01:10:54 -0700 (PDT) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id d36sm7804601edb.63.2017.07.10.01.10.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jul 2017 01:10:53 -0700 (PDT) Date: Mon, 10 Jul 2017 10:10:51 +0200 From: Olivier Matz To: Hemant Agrawal Cc: , Message-ID: <20170710101051.1f5a6d10@platinum> In-Reply-To: <1498135688-3853-1-git-send-email-hemant.agrawal@nxp.com> References: <1495532028-9700-1-git-send-email-hemant.agrawal@nxp.com> <1498135688-3853-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-stable] [PATCH v2 1/2] mempool/dpaa2: fix the return value for alloc fail X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2017 08:10:54 -0000 On Thu, 22 Jun 2017 18:18:07 +0530, Hemant Agrawal wrote: > In case the alloc api is not able to allocate the required > number of buffer, it can return '0', which will not indicate > the failure to the calling function. > This patch fix the return value to indicate the failure. > > Fixes: 5dc43d22b5ad ("mempool/dpaa2: add hardware offloaded mempool") > CC: stable@dpdk.org > > Signed-off-by: Hemant Agrawal Reviewed-by: Olivier Matz