From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=lsCFUsaHnEQNNc8t4AmYS2+2749NrF06K/54pgoTWzU=; b=y5qCLwofwqIzE3jOBHwNwydPRDGNTzwiGM1/z33bvsXd9Slk264Jx7GttHXR5+BMcm arIAiGs7IykA3LGK7mw4NqTOBWnAnU37ZRHBhCzBH6lbliHM30u5FqXNoyLZJFfHQLGl vM3gyq6aN0e4d9b8c8DwLMfyhpa+MoKkYzmUK1X31e8kF2e2VA9sKj2/ry47Tvgh/XPs 2L7hgCfXd40HUKApt3j+UFwvyvaHDKPvUVxILTKMIF+I70NikHk6+Exs15iHuNFYAygp ncgGucTy91BMYJzUg+Rchzknn4si6QMBy91xNzqeMNz+lMbcVDmZ2GBzHQ3ajoVfp8Di GtgA== 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=lsCFUsaHnEQNNc8t4AmYS2+2749NrF06K/54pgoTWzU=; b=i3GAo9oNAetAaTylYZBLxxgACvgD4iffgi8I5EFNPOieg2vau8G36QpwSNi/6wurGS p1wL1bSFQrMMZSWsNrmGsxeUF9XR4Z4PLTfi5xyZ1EHr96ehkgOlpWBVOmoFbwYF0kZj lp7+hG75TbnhCf0VgDLNmT9VhJOkv00ISNec51J3GkceksOwJP6LVmplQHOXez5PW9QE j36V6ZtqaNRt4iHO9636ZypNyQkiPRNIPaD80cCciZ2yVRcqZ2F/DT/bvQMHScfP+Yva 64+Q/IgIB3HEgSe/yWrh2TTGPVG+cz4eNEfdtxGYH8Lacpu6vuaPpo50w4UEEO6JJNW+ I1fw== X-Gm-Message-State: AKS2vOz5zTxEHiHbzANmT+6ioykw2uYRGRmPPnfm+PHFGU7XK77qSHbT l+Sd5Hc/rLngtpxwj8E= X-Received: by 10.223.168.48 with SMTP id l45mr26676710wrc.94.1498832828421; Fri, 30 Jun 2017 07:27:08 -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 f45sm12965408wrf.2.2017.06.30.07.27.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Jun 2017 07:27:08 -0700 (PDT) Date: Fri, 30 Jun 2017 16:27:05 +0200 From: Olivier Matz To: Vasily Philipov Cc: dev@dpdk.org, stable@dpdk.org Message-ID: <20170630162705.4d5e8462@platinum> In-Reply-To: <90afb772790da3a10d3ada97dd843ccd94a8c3f8.1498652244.git.vasilyf@mellanox.com> References: <90afb772790da3a10d3ada97dd843ccd94a8c3f8.1498652244.git.vasilyf@mellanox.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] mbuf: fix debug checks for headroom and tailroom 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: Fri, 30 Jun 2017 14:27:09 -0000 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