From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by dpdk.org (Postfix) with ESMTP id 5449758D1 for ; Mon, 10 Jul 2017 10:10:54 +0200 (CEST) Received: by mail-wr0-f175.google.com with SMTP id 77so127534489wrb.1 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=VznbgOpZsZvsZQct/uTmlhjjsyOfX6rfb5VGkkrwUJinpS3WWnX/z0LtLA+TCQM+Nd RFrDIc8xJwqazjsixjqzH8f5qgZ1AQhVzb+WHqHwEz++viXV/lOKHivDDZm5VrjMoA5N LmU/f9PVsN/sz/Ya/9Kmjhc3LOSUIdo84wBFxB+CV2RpIRqf17iPNj0w9e+RKo/PVZfN kVyR1MtU620Ao3Ii8K5dOhEZoIBcyRTFggVfM6y99Najy+ghs13gMsPwv9hBYfOhQsBi QjJgWgq4j9lfmpVwTgwUqz1AXyJLY+f33+ST60JP/YJ+/zbfqzM1nw9O9fNYlVLoNwCS M2zw== X-Gm-Message-State: AIVw112H5QypJrn/lmdeVOf8UzZd/54ob3oEihDNXkqsbs3J25OfggQb XMk5+7F9VXMK35wi 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-dev] [PATCH v2 1/2] mempool/dpaa2: fix the return value for alloc fail 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, 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