From owner-freebsd-hackers Tue Mar 11 02:25:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA11702 for hackers-outgoing; Tue, 11 Mar 1997 02:25:53 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA11697 for ; Tue, 11 Mar 1997 02:25:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id CAA19472; Tue, 11 Mar 1997 02:24:01 -0800 (PST) Message-Id: <199703111024.CAA19472@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Luigi Rizzo cc: msmith@atrad.adelaide.edu.au (Michael Smith), bde@zeta.org.au, bag@sinbin.demos.su, hackers@freebsd.org Subject: Re: performance (was: 100 Mb/s cards) In-reply-to: Your message of "Tue, 11 Mar 1997 10:24:13 +0100." <199703110924.KAA29182@labinfo.iet.unipi.it> From: David Greenman Reply-To: dg@root.com Date: Tue, 11 Mar 1997 02:24:01 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >For incoming data, a bit of care in the allocation of buffers is >probably necessary (so that the ethernet header goes into a separate >mbuf). I have no idea if any of our drivers does this, but probably it >would be a nice thing to have. > >David, do you know something about this ? The de driver doesn't copy the packet unless it's being compiled on an Alpha. Both the de and fxp drivers DMA the packet with the ethernet header aligned on a 32bit boundry, which means that the packet minus the ether header is not 32bit aligned (only 16bit alignment). Due to the architecture of the DC21x4x, it's not possible to work around this. It is possible to use different alignment with the Pro/100B chip (82557), but I don't currently do that in the driver - it was easier not to bother. I might change this in the future. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project