From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D613A20BBA; Thu, 5 Oct 2017 17:33:17 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 05 Oct 2017 17:33:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=qKkS7P8we4SPVWW /W/K2gH8RMDxL6FoYzeD2FQsykR0=; b=Aqs2oJdTyeroV8F8XI2fIzdpMaif2y+ Sf2Ba8gMj3tBoUDgoDcUYSHFLLx9DYZzNfB+XUEa9t+CXgr7VoD3Qdh6BJ3zXIoT RUwCkz3k5DejMNku1DkGUCXtu80zlKHzNcu5eHcCalkowqGRa4sDdNsGhd65DNl2 zJEo4Mjp09jA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=qKkS7P8we4SPVWW/W/K2gH8RMDxL6FoYzeD2FQsykR0=; b=dDXGBCU1 Rm11ZYpq7aKsylD/oU/oG3gkH2LBp3O18+/6Qj2SXlHJYukLFE9A4/0G95iiK7QG xdLUO5sSJyaUw+KN//jFrz+fWiySCVF0UsqvxiKYyj++YJEJQ8yqWUelhdQ/9lWt +mDUuR91sygh/wem3mPNwkjacDgS2YqfeJfhoaeeGjc2OovjGRNSeHWV3wryAqLN MghDbQpiSAmcXOiEffaezzHw7UVVwRbDpuIcD94YME9EJtm+vs1/f+uESDGQ9yz0 f99EA5Ib3fGnJUWDXB1QCFxmAkTHJS4HzwuISRGBNNmUHQOk0bbqDZ+u+NasmPQY sT9d56y/Quxl9w== X-ME-Sender: X-Sasl-enc: orYvZeEDeGXr5y13//06m7/HIzjtOx2q1yocE38k9VvG 1507239197 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 88900248B1; Thu, 5 Oct 2017 17:33:17 -0400 (EDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org Date: Thu, 05 Oct 2017 23:33:16 +0200 Message-ID: <43071882.lgGQRa1Taa@xps> In-Reply-To: <20170911145722.4833-1-olivier.matz@6wind.com> References: <20170911145722.4833-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] net: fix inner L2 length in software ptype parser 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, 05 Oct 2017 21:33:18 -0000 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