From owner-freebsd-arm@FreeBSD.ORG Sun Jun 10 10:56:09 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CCDF16A400 for ; Sun, 10 Jun 2007 10:56:09 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id D819B13C45A for ; Sun, 10 Jun 2007 10:56:08 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l5AAu0pM023151; Sun, 10 Jun 2007 12:56:00 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l5AAtpxS012303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Jun 2007 12:55:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l5AAtpWC035093; Sun, 10 Jun 2007 12:55:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l5AAtpiY035092; Sun, 10 Jun 2007 12:55:51 +0200 (CEST) (envelope-from ticso) Date: Sun, 10 Jun 2007 12:55:51 +0200 From: Bernd Walter To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= Message-ID: <20070610105550.GQ16463@cicely12.cicely.de> References: <59832.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181391583.squirrel@webmail.alpha-tierchen.de> <20070609123941.GJ16463@cicely12.cicely.de> <51831.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181397815.squirrel@webmail.alpha-tierchen.de> <20070609.094708.-2034663768.imp@bsdimp.com> <1161.89.247.105.240.1181457870.squirrel@webmail.alpha-tierchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1161.89.247.105.240.1181457870.squirrel@webmail.alpha-tierchen.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: arm@freebsd.org, ticso@cicely.de Subject: Re: if_ate handles the bytes of the MAC address in a "wrong" order X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 10:56:09 -0000 On Sun, Jun 10, 2007 at 08:44:30AM +0200, Björn König wrote: > > I think these patches are basically good. I gotta think about how I > > wanna roll these into the kernel as I have units in the field that > > upgrading their boot loader would be awkward... > > Maybe we need a kernel option for keeping backward compatibility. > > > Why do you look at all four SA registers, but only pick the first > > non-zero one? Why is that going to he better than just looking at the > > first one? Until FreeBSD can support muliple MAC addresses, I'm not > > sure I see the point... > > You're right, adding multiple addresses would be perfect. I didn't take > that into account, because I just wanted that the driver doesn't fail if > the first register is empty, but one of the others isn't. That seems to be > strange, but it is reality in my case. - Thus adding multiple addresses is > the next task on my list. ;-) This is more than just adding support into the driver. AFAIK the system has no support for multiple MAC yet. There are two points in the driver missing I know of. The first one is promiscuous support, this should be nothing more than adding the flag and seting the device bit. It wasn't on my list of things to do, because I have a switch soldered onboard, which have to be configured for promiscuous as well. The second one is add support for polling. Polling is a feature, which has showed positive effects on many small systems such as soekris. I asume polling support for ate to be a big win. Then tcpdump crashes with an unaligned fault when tracing ate - it does run when I trace ng interface. This is likely userland problem, but it is interesting that it doesn't happen with ng. Maybe just a matter of packets - who knows. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de