linux-mips
[Top] [All Lists]

Re: BUG in the PCNET32 ethernet driver

To: carstenl@mips.com
Subject: Re: BUG in the PCNET32 ethernet driver
From: "David S. Miller" <davem@redhat.com>
Date: Wed, 13 Nov 2002 20:11:55 -0800 (PST)
Cc: jgarzik@pobox.com, ralf@linux-mips.org, linux-mips@linux-mips.org, tsbogend@alpha.franken.de, linux-net@vger.kernel.org, kevink@mips.com
In-reply-to: <3DD2B128.62DFB392@mips.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3DD254F8.14DE20EA@mips.com> <3DD280FB.7070907@pobox.com> <3DD2B128.62DFB392@mips.com>
Sender: linux-mips-bounce@linux-mips.org
   From: Carsten Langgaard <carstenl@mips.com>
   Date: Wed, 13 Nov 2002 21:08:08 +0100

   Jeff Garzik wrote:
   
   > Why does this line not reference PKT_BUF_SZ when all the others do?
   
   In this case we know the size of the packet and therefore only need to 
handle that.
   In the other cases we don't know have big the receiving packet is going to 
be, so we has to
   take care of the whole buffer.

When you unmap a DMA buffer, which is a resource so this is just like
freeing memory, you must specify the exact size you used when creating
the mapping to begin with.

Franks a lot,
David S. Miller
davem@redhat.com

<Prev in Thread] Current Thread [Next in Thread>