From owner-freebsd-hackers Thu Oct 4 15:54:59 2001 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 E7B7B37B406 for ; Thu, 4 Oct 2001 15:54:56 -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 SAA29004; Thu, 4 Oct 2001 18:54:52 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id f94MsQm36777; Thu, 4 Oct 2001 18:54:26 -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: <15292.59554.280315.109732@grasshopper.cs.duke.edu> Date: Thu, 4 Oct 2001 18:54:26 -0400 (EDT) To: Bsdguru@aol.com Cc: hackers@freebsd.org Subject: Re: 64bit Ethernet Card (if_sf driver) In-Reply-To: <137.296ca27.28edf63e@aol.com> References: <137.296ca27.28edf63e@aol.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 Bsdguru@aol.com writes: > > Anyone with experience or ideas? > Because of the aligment constraints of the card, its copying every single packet the driver recvs. This is required on alpha (and possibly other platforms) to prevent an unlaligned access. In a forwarding situation on an x86, it is suboptimal. Try making the m_devget in the rcv handler conditional on !i386 (see http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/nge/if_nge.c.diff?r1=1.13.2.2&r2=1.13.2.3 for an example of how to change this) I'd be interestd to hear (quantitatively) how much your perf changes. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message