From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 442092986 for ; Wed, 17 May 2017 08:30:54 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2017 23:30:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,352,1491289200"; d="scan'208";a="1148759539" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga001.fm.intel.com with ESMTP; 16 May 2017 23:30:52 -0700 Date: Wed, 17 May 2017 14:26:29 +0800 From: Yuanhan Liu To: Alejandro Lucero Cc: stable@dpdk.org Message-ID: <20170517062629.GJ3102@yliu-dev.sh.intel.com> References: <1494942782-36575-1-git-send-email-alejandro.lucero@netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494942782-36575-1-git-send-email-alejandro.lucero@netronome.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-stable] [PATCH] net/nfp: fix packet/data length conversion X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 06:30:55 -0000 On Tue, May 16, 2017 at 02:53:02PM +0100, Alejandro Lucero wrote: > [ backported from upstream commit 19ac8c75df90ef90ef8100b13ee3fed2da5a5ac7 ] > > Chained mbufs hold data_len as the length of that particular mbuf > and pkt_len as the full packet length including all the chained > mbufs. It is not clear from the mbuf definition if pkt_len should > be set for all the mbufs in a chain, but code there for handling > mbufs suggests just the first mbuf requires to have pkt_len set. > > NFP PMD was assuming pkt_len is set in all the chained mbufs and > unit tests for gather dma were building mbufs with pkt_len always > set. This patch gets rid of that assumption. > > Fixes: b812daadad0d ("nfp: add Rx and Tx") > > Signed-off-by: Alejandro Lucero Applied to dpdk-stable/16.11. Thanks! --yliu