From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752776AbdJ0OeW (ORCPT ); Fri, 27 Oct 2017 10:34:22 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:42329 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbdJ0OeR (ORCPT ); Fri, 27 Oct 2017 10:34:17 -0400 Date: Fri, 27 Oct 2017 17:34:03 +0300 From: Dan Carpenter To: Bogdan Purcareata Cc: Ruxandra Ioana Radulescu , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@driverdev.osuosl.org" Subject: Re: [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset Message-ID: <20171027143403.hpjplwg4dxoukoby@mwanda> References: <1509113496-10810-1-git-send-email-bogdan.purcareata@nxp.com> <1509113496-10810-4-git-send-email-bogdan.purcareata@nxp.com> <20171027142649.rwlz4lvdf7jbcqng@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 27, 2017 at 02:31:22PM +0000, Bogdan Purcareata wrote: > > -----Original Message----- > > From: Dan Carpenter [mailto:dan.carpenter@oracle.com] > > Sent: Friday, October 27, 2017 5:27 PM > > To: Bogdan Purcareata > > Cc: Ruxandra Ioana Radulescu ; > > gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; > > devel@driverdev.osuosl.org > > Subject: Re: [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in > > tx_data_offset > > > > > > On Fri, Oct 27, 2017 at 02:11:34PM +0000, Bogdan Purcareata wrote: > > > When configuring the Tx buffer layout, the software annotation size is > > > mentioned, and MC accounts for it when configuring the frame > > > tx_data_offset. No need to handle it in the driver as well. > > > > > > > The impact is that we allocate slightly less memory right? > > Yes, 64B per frame. Ok. Cool. Please put this kind of stuff in the changelog. At first I thought it was maybe a buffer overflow just from reading what was in the email without looking at the code. regards, dan carpenter