All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: "Souptick Joarder" <jrdr.linux@gmail.com>,
	"Krzysztof Hałasa" <khalasa@piap.pl>,
	netdev@vger.kernel.org
Cc: Rameshwar Sahu <sahu.rameshwar73@gmail.com>
Subject: Re: [PATCH] net: wan: Use dma_pool_zalloc
Date: Thu, 15 Dec 2016 08:48:07 -0800	[thread overview]
Message-ID: <1481820487.29291.66.camel@perches.com> (raw)
In-Reply-To: <CAFqt6zaHJ_YP-inLm8_XRDrX8FtcU86NqYG=+DRn9-Y3zR4cyg@mail.gmail.com>

On Thu, 2016-12-15 at 10:41 +0530, Souptick Joarder wrote:
> On Mon, Dec 12, 2016 at 10:12 AM, Souptick Joarder <jrdr.linux@gmail.com> wrote:
> > On Fri, Dec 9, 2016 at 6:33 PM, Krzysztof Hałasa <khalasa@piap.pl> wrote:
> > > Souptick Joarder <jrdr.linux@gmail.com> writes:
> > > 
> > > > We should use dma_pool_zalloc instead of dma_pool_alloc/memset
[]
> > > > diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c
[]
> > > > @@ -976,10 +976,9 @@ static int init_hdlc_queues(struct port *port)
> > > >                       return -ENOMEM;
> > > >       }
> > > > 
> > > > -     if (!(port->desc_tab = dma_pool_alloc(dma_pool, GFP_KERNEL,
> > > > -                                           &port->desc_tab_phys)))
> > > > +     if (!(port->desc_tab = dma_pool_zalloc(dma_pool, GFP_KERNEL,
> > > > +                                            &port->desc_tab_phys)))
> > > >               return -ENOMEM;
> > > > -     memset(port->desc_tab, 0, POOL_ALLOC_SIZE);
> > > >       memset(port->rx_buff_tab, 0, sizeof(port->rx_buff_tab)); /* tables */
> > > >       memset(port->tx_buff_tab, 0, sizeof(port->tx_buff_tab));
> > > 
> > > This look fine, feel free to send it to the netdev mailing list for
> > > inclusion.
> > 
> > Including netdev mailing list based as requested.
> > > Acked-by: Krzysztof Halasa <khalasa@piap.pl>
[]
> Any comment on this patch ?

Shouldn't the one in drivers/net/ethernet/xscale/ixp4xx_eth.c
also be changed?

  reply	other threads:[~2016-12-15 16:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20161203091447.GA5231@jordon-HP-15-Notebook-PC>
     [not found] ` <m3wpf9l0fc.fsf@t19.piap.pl>
2016-12-12  4:42   ` [PATCH] net: wan: Use dma_pool_zalloc Souptick Joarder
2016-12-15  5:11     ` Souptick Joarder
2016-12-15 16:48       ` Joe Perches [this message]
2016-12-16  6:03         ` Souptick Joarder
2016-12-16  6:10           ` Joe Perches
2016-12-16 13:55             ` Souptick Joarder
2016-12-17  0:17               ` Joe Perches

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=1481820487.29291.66.camel@perches.com \
    --to=joe@perches.com \
    --cc=jrdr.linux@gmail.com \
    --cc=khalasa@piap.pl \
    --cc=netdev@vger.kernel.org \
    --cc=sahu.rameshwar73@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.