From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] mbuf: fix bulk allocation when debug enabled Date: Wed, 10 May 2017 18:17:31 +0200 Message-ID: <2707890.iNWbliFgfp@xps> References: <1802735.EECn92tGJO@polaris> <20170510151310.20505-1-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Olivier Matz To: gregory@weka.io Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id B414314EC for ; Wed, 10 May 2017 18:17:32 +0200 (CEST) In-Reply-To: <20170510151310.20505-1-olivier.matz@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 10/05/2017 17:13, Olivier Matz: > From: Gregory Etelson > > The debug assertions when allocating a raw mbuf are not correct since > commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"), > which triggers a panic when using this function in debug mode > > Change the expected number of segments to 1 instead of 0, and > factorize these sanity checks. > > Fixes: 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool") > > Signed-off-by: Gregory Etelson > Signed-off-by: Olivier Matz Applied, thanks