From owner-freebsd-hackers Mon Jun 24 12: 6:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id C25E437B401 for ; Mon, 24 Jun 2002 12:06:52 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id PAA27965; Mon, 24 Jun 2002 15:06:51 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g5OJ6L308393; Mon, 24 Jun 2002 15:06:21 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15639.28077.881363.884693@grasshopper.cs.duke.edu> Date: Mon, 24 Jun 2002 15:06:21 -0400 (EDT) To: John Polstra Cc: hackers@freebsd.org Subject: Re: Re: bge driver issue In-Reply-To: <200206241645.g5OGjZH31049@vashon.polstra.com> References: <200206231552.g5NFqS002122@pacbell.net> <200206241645.g5OGjZH31049@vashon.polstra.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Polstra writes: > On the i386, living with the misalignment is probably the best > solution, unfortunately. The only alternatives I can think of are: > > - bcopy the packet up by 2 bytes after reception to align the > payload, or > > - disable PCI-X mode on the bus > If the bge's API allows it, you could setup a receive descriptor with a length of 14 bytes (size of ethernet header), and start the next descripter 2 bytes after it (at a 16 byte offset from the front of the mbuf). When the receive is done, just copy the 14 bytes. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message