From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH] mbuf: fix debug checks for headroom and tailroom Date: Fri, 30 Jun 2017 16:27:05 +0200 Message-ID: <20170630162705.4d5e8462@platinum> References: <90afb772790da3a10d3ada97dd843ccd94a8c3f8.1498652244.git.vasilyf@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, stable@dpdk.org To: Vasily Philipov Return-path: Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by dpdk.org (Postfix) with ESMTP id C0AAD7CAF for ; Fri, 30 Jun 2017 16:27:08 +0200 (CEST) Received: by mail-wr0-f177.google.com with SMTP id k67so204632630wrc.2 for ; Fri, 30 Jun 2017 07:27:08 -0700 (PDT) In-Reply-To: <90afb772790da3a10d3ada97dd843ccd94a8c3f8.1498652244.git.vasilyf@mellanox.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" On Wed, 28 Jun 2017 15:25:12 +0300, Vasily Philipov wrote: > rte_pktmbuf_headroom() and rte_pktmbuf_tailroom() should be usable > with any segment, not only with headered ones, so is_header should be 0 > when we call for sanity check inside them. > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Signed-off-by: Vasily Philipov Acked-by: Olivier Matz