From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net: fix inner L2 length in software ptype parser Date: Thu, 05 Oct 2017 23:33:16 +0200 Message-ID: <43071882.lgGQRa1Taa@xps> References: <20170911145722.4833-1-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Olivier Matz Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 4E28C1B1B8 for ; Thu, 5 Oct 2017 23:33:18 +0200 (CEST) In-Reply-To: <20170911145722.4833-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" 11/09/2017 16:57, Olivier Matz: > The inner L2 length returned by rte_net_get_ptype() is not > properly initialized. If the caller does not zero the header > lengths structure, the inner_l2 field will be undefined. > > Fix it by initializing inner_l2 to 0 when parsing a inner layer. > > Fixes: 2c15c5377da2 ("net: support NVGRE in software packet type parser") > > Signed-off-by: Olivier Matz Applied, thanks