From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 5C8611B455 for ; Thu, 2 Aug 2018 13:10:55 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id C6E98B4005F; Thu, 2 Aug 2018 11:10:53 +0000 (UTC) Received: from [192.168.1.16] (85.187.13.33) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 2 Aug 2018 12:10:48 +0100 To: Pablo de Lara , CC: References: <20180717103720.26783-1-pablo.de.lara.guarch@intel.com> <20180802003504.30679-1-pablo.de.lara.guarch@intel.com> From: Andrew Rybchenko Message-ID: <33a1d258-7331-e7b1-3694-e784d46006b9@solarflare.com> Date: Thu, 2 Aug 2018 14:10:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180802003504.30679-1-pablo.de.lara.guarch@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [85.187.13.33] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24006.003 X-TM-AS-Result: No-1.598200-8.000000-10 X-TMASE-MatchedRID: sDm3xtR6Ud8OwH4pD14DsPHkpkyUphL9pfVcx39Kq+6cpGufbGiAqG+3 ctxX3zZNcspcFewXO92Rk6XtYogiau9c69BWUTGw0C1sQRfQzEHEQdG7H66TyMdRT5TQAJnAXTO 2/+BiK/Q73TdIGppQY67h9ngli7PetcWDW2vtNwzi+fTMx9KaNitss6PUa4/cD6GAt+UbooSj1C O4X0Eqed8x3qzoMNxx X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.598200-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24006.003 X-MDID: 1533208254-zfdbnykmG-JS Subject: Re: [dpdk-dev] [PATCH v2] mempool: check for invalid args on creation 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, 02 Aug 2018 11:10:55 -0000 On 02.08.2018 03:35, Pablo de Lara wrote: > Currently, a mempool can be created if the number of > objects is zero. However, in this scenario, > rte_mempool_create should return NULL, > as the mempool created is useless otherwise. > > Signed-off-by: Pablo de Lara Acked-by: Andrew Rybchenko