From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id E10A69FE; Sat, 16 Dec 2017 18:25:15 +0100 (CET) Received: from lfbn-lil-1-110-231.w90-45.abo.wanadoo.fr ([90.45.197.231] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eQGJ8-0004GW-M0; Sat, 16 Dec 2017 18:31:32 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Sat, 16 Dec 2017 18:25:04 +0100 Date: Sat, 16 Dec 2017 18:25:04 +0100 From: Olivier MATZ To: Ferruh Yigit Cc: dev@dpdk.org, Ajit Khaparde , stable@dpdk.org Message-ID: <20171216172502.kd2ngzl6moqfzhv5@platinum> References: <20171214142825.28176-1-olivier.matz@6wind.com> <5f0b6b54-9813-b03f-47ed-c10e49cb3d44@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f0b6b54-9813-b03f-47ed-c10e49cb3d44@intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-stable] [PATCH 1/2] net/bnxt: fix headroom initialization 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: Sat, 16 Dec 2017 17:25:16 -0000 Hi Ferruh, On Fri, Dec 15, 2017 at 06:30:58PM -0800, Ferruh Yigit wrote: > On 12/14/2017 6:28 AM, Olivier Matz wrote: > > When allocating a new mbuf for Rx, the value of m->data_off should not > > be reset to its default value (RTE_PKTMBUF_HEADROOM), instead of reusing > > the previous undefined value, which could cause the packet to have a too > > small or too high headroom. > > > > Fixes: 2eb53b134aae ("net/bnxt: add initial Rx code") > > Cc: stable@dpdk.org > > > > Signed-off-by: Olivier Matz > > --- > > drivers/net/bnxt/bnxt_rxr.c | 7 ++++--- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c > > index 188df362e..3fff4d437 100644 > > --- a/drivers/net/bnxt/bnxt_rxr.c > > +++ b/drivers/net/bnxt/bnxt_rxr.c > > @@ -75,7 +75,7 @@ static inline int bnxt_alloc_rx_data(struct bnxt_rx_queue *rxq, > > > > rx_buf->mbuf = data; > > > > - rxbd->addr = rte_cpu_to_le_64(RTE_MBUF_DATA_DMA_ADDR(rx_buf->mbuf)); > > + rxbd->addr = rte_cpu_to_le_64(rte_mbuf_data_dma_addr_default(data)); > > Hi Olivier, > > Using deprecated rte_mbuf_data_dma_addr_default() breaks build for this commit. > > What do you think using directly rte_mbuf_data_iova_default() in this patch? No problem. It was initially split in 2 patches to ease the backport for stable versions.