From owner-freebsd-hackers Tue Mar 18 02:39:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA20063 for hackers-outgoing; Tue, 18 Mar 1997 02:39:53 -0800 (PST) Received: from nyx.pr.mcs.net (nyx.pr.mcs.net [204.95.55.81]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA20057 for ; Tue, 18 Mar 1997 02:39:47 -0800 (PST) Received: from nyx.pr.mcs.net (localhost [127.0.0.1]) by nyx.pr.mcs.net (8.8.5/8.8.4) with ESMTP id EAA03782 for ; Tue, 18 Mar 1997 04:39:04 -0600 (CST) Message-Id: <199703181039.EAA03782@nyx.pr.mcs.net> X-Mailer: exmh version 1.6.9 8/22/96 To: hackers@freebsd.org Subject: ep driver memory management question.. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 18 Mar 1997 04:39:03 -0600 From: Chris Csanady Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm not very familiar with net drivers, but I would like to rewrite the ep driver to use contiguous packet buffers. I am curious about how it allocates memory for packets, and if there are any limitations. From the code, it looks as if it just allocates an mbuf, dmas into it, and passes it off to ether_input. Is this correct? I thought that there was a 16M limit on dma for the isa bus without bouncing, but I didn't see anything that dealt with this. Is this because all the mbufs get allocated at boot, so its just the way it turns out? If so, I will need to allocate a contiguous chunk of memory for the driver upon boot. How would I do this? Thanks, Chris Csanady