From: Dan Carpenter <dan.carpenter@oracle.com>
To: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Cc: "devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment
Date: Mon, 30 Oct 2017 11:55:50 +0300 [thread overview]
Message-ID: <20171030085550.cqmladzvmysxefik@mwanda> (raw)
In-Reply-To: <DB5PR04MB12409F14541D67B2D2BF4791EA5A0@DB5PR04MB1240.eurprd04.prod.outlook.com>
On Fri, Oct 27, 2017 at 02:44:37PM +0000, Bogdan Purcareata wrote:
> > -----Original Message-----
> > From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
> > Sent: Friday, October 27, 2017 5:30 PM
> > To: Bogdan Purcareata <bogdan.purcareata@nxp.com>
> > Cc: Ruxandra Ioana Radulescu <ruxandra.radulescu@nxp.com>;
> > gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > devel@driverdev.osuosl.org
> > Subject: Re: [PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment
> >
> > On Fri, Oct 27, 2017 at 02:11:35PM +0000, Bogdan Purcareata wrote:
> > > @@ -93,10 +100,10 @@
> > > * buffers large enough to allow building an skb around them and also
> > account
> > > * for alignment restrictions
> > > */
> > > -#define DPAA2_ETH_BUF_RAW_SIZE \
> > > +#define DPAA2_ETH_BUF_RAW_SIZE(priv) \
> > > (DPAA2_ETH_RX_BUF_SIZE + \
> > > SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + \
> > > - DPAA2_ETH_RX_BUF_ALIGN)
> > > + (priv)->rx_buf_align)
> > >
> >
> > Not related to this patch, but this macro is ugly. It would be better
> > as function.
>
> Okay, will change the macros to inline functions in v2, where applicable.
>
You didn't need to do that, because I said it was "not related to this
change". I try not to make people redo paches for stuff like this. But
thanks, it looks nicer now.
regards,
dan carpenter
next prev parent reply other threads:[~2017-10-30 8:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-27 14:11 [PATCH 0/5] staging: fsl-dpaa2/eth: Frame buffer work Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 1/5] staging: fsl-dpaa2/eth: Label cleanup Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 2/5] staging: fsl-dpaa2/eth: Split function Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset Bogdan Purcareata
2017-10-27 14:26 ` Dan Carpenter
2017-10-27 14:31 ` Bogdan Purcareata
2017-10-27 14:34 ` Dan Carpenter
2017-10-27 14:42 ` Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment Bogdan Purcareata
2017-10-27 14:30 ` Dan Carpenter
2017-10-27 14:44 ` Bogdan Purcareata
2017-10-30 8:55 ` Dan Carpenter [this message]
2017-10-30 9:16 ` Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 5/5] staging: fsl-dpaa2/eth: Extra headroom in RX buffers Bogdan Purcareata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171030085550.cqmladzvmysxefik@mwanda \
--to=dan.carpenter@oracle.com \
--cc=bogdan.purcareata@nxp.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome