From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Corcodel Marian <corcodel.marian@gmail.com>, netdev@vger.kernel.org
Subject: Re: [PATCH] r8169:Fill with zero Tx descriptors
Date: Wed, 5 Aug 2015 15:57:21 +0300 [thread overview]
Message-ID: <55C20831.30909@cogentembedded.com> (raw)
In-Reply-To: <1438771604-17621-1-git-send-email-corcodel.marian@gmail.com>
Hello.
On 8/5/2015 1:46 PM, Corcodel Marian wrote:
> This patch fill with zero Tx descriptors before use.Is only
> on part by more patches but is critical.(critical)
> Signed-off-by: Corcodel Marian <corcodel.marian@gmail.com>
> diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
> index 3df51fa..bf78f94 100644
> --- a/drivers/net/ethernet/realtek/r8169.c
> +++ b/drivers/net/ethernet/realtek/r8169.c
> @@ -7589,7 +7589,7 @@ static int rtl_open(struct net_device *dev)
> * Rx and Tx descriptors needs 256 bytes alignment.
> * dma_alloc_coherent provides more.
> */
> - tp->TxDescArray = dma_alloc_coherent(&pdev->dev, R8169_TX_RING_BYTES,
> + tp->TxDescArray = dma_zalloc_coherent(&pdev->dev, R8169_TX_RING_BYTES,
> &tp->TxPhyAddr, GFP_KERNEL);
Please re-align the continuation line.
[...]
MBR, Sergei
next prev parent reply other threads:[~2015-08-05 12:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 10:46 [PATCH] r8169:Fill with zero Tx descriptors Corcodel Marian
2015-08-05 12:57 ` Sergei Shtylyov [this message]
2015-08-05 13:42 ` Ivan Vecera
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=55C20831.30909@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=corcodel.marian@gmail.com \
--cc=netdev@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 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.