From: David Greaves <david@dgreaves.com>
To: "Venkatesan, Ganesh" <ganesh.venkatesan@intel.com>
Cc: Anton Blanchard <anton@samba.org>,
netdev@oss.sgi.com, cramerj <cramerj@intel.com>,
"Ronciak, John" <john.ronciak@intel.com>
Subject: Re: e1000_clean_tx_ring
Date: Tue, 29 Jun 2004 09:08:34 +0100 [thread overview]
Message-ID: <40E12382.7050805@dgreaves.com> (raw)
In-Reply-To: <468F3FDA28AA87429AD807992E22D07E01967ADD@orsmsx408>
FYI
It hasn't helped with either of my problems; watchdog timeout or mtu
9000 malloc
David
Venkatesan, Ganesh wrote:
>Anton:
>
>We will integrate this patch into the next release of our driver.
>
>Thanks,
>ganesh
>
>-------------------------------------------------
>Ganesh Venkatesan
>Network/Storage Division, Hillsboro, OR
>
>-----Original Message-----
>From: Anton Blanchard [mailto:anton@samba.org]
>Sent: Thursday, June 24, 2004 4:23 PM
>To: netdev@oss.sgi.com
>Cc: cramerj; Ronciak, John; Venkatesan, Ganesh
>Subject: e1000_clean_tx_ring
>
>
>Hi,
>
>I was looking over the e1000 driver and noticed what I think is a bug
>in e1000_clean_tx_ring. We wouldnt call pci_unmap_page on tx ring
>entries that didnt have ->skb filled, eg zero copy packets.
>
>This is on latest 2.6 BK.
>
>Anton
>
>===== e1000_main.c 1.120 vs edited =====
>--- 1.120/drivers/net/e1000/e1000_main.c Sat Jun 19 10:00:00 2004
>+++ edited/e1000_main.c Thu Jun 24 02:16:42 2004
>@@ -1070,14 +1070,19 @@
>
> for(i = 0; i < tx_ring->count; i++) {
> buffer_info = &tx_ring->buffer_info[i];
>- if(buffer_info->skb) {
>+ if (buffer_info->dma) {
>
> pci_unmap_page(pdev,
> buffer_info->dma,
> buffer_info->length,
> PCI_DMA_TODEVICE);
>
>- dev_kfree_skb(buffer_info->skb);
>+ buffer_info->dma = NULL;
>+ }
>+
>+ if (buffer_info->skb) {
>+
>+ dev_kfree_skb_any(buffer_info->skb);
>
> buffer_info->skb = NULL;
> }
>
>
>
>
>
>
>
next prev parent reply other threads:[~2004-06-29 8:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-28 22:11 e1000_clean_tx_ring Venkatesan, Ganesh
2004-06-29 8:08 ` David Greaves [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-24 23:23 e1000_clean_tx_ring Anton Blanchard
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=40E12382.7050805@dgreaves.com \
--to=david@dgreaves.com \
--cc=anton@samba.org \
--cc=cramerj@intel.com \
--cc=ganesh.venkatesan@intel.com \
--cc=john.ronciak@intel.com \
--cc=netdev@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).