From owner-freebsd-arch@FreeBSD.ORG Wed Sep 1 09:56:35 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAD416A4CE for ; Wed, 1 Sep 2004 09:56:35 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E7A543D60 for ; Wed, 1 Sep 2004 09:56:34 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 93898 invoked from network); 1 Sep 2004 09:54:20 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 1 Sep 2004 09:54:20 -0000 Message-ID: <41359CD2.E232327@freebsd.org> Date: Wed, 01 Sep 2004 11:56:34 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Wemm References: <20040831203929.GB25134@odin.ac.hmc.edu> <4134FB98.6A3822BC@freebsd.org> <200408311709.32927.peter@wemm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Sam cc: Scott Long cc: freebsd-arch@freebsd.org Subject: Re: option directive and turning on AOE X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 09:56:35 -0000 Peter Wemm wrote: > > On Tuesday 31 August 2004 03:28 pm, Andre Oppermann wrote: > > Brooks Davis wrote: > > > On Tue, Aug 31, 2004 at 02:27:33PM -0600, Scott Long wrote: > > > > Sam wrote: > > > > >I've added code to if_ethersubr.c:/ether_demux/ > > > > >to queue up AoE frames as they appear. I followed > > > > >suit with other protocols and included my addition > > > > >inside of an #ifdef AOE. Where do I turn this on? > > > > >I thought perhaps just adding an 'option AOE' to > > > > >the config would do it, but it doesn't -- so clearly > > > > >I don't understand how the option directive works. > > > > >The config man page doesn't talk about option/device > > > > >directives ... > > > > > > > > > >I'm still looking, but a clue would be well received. > > > > > > > > Did you modify /sys/conf/options to tell it about your > > > > AOE option? If so, then you should have specified the name > > > > of a header file that the option would be #define'd into. > > > > Include that header file in if_ethersubr.c and you should > > > > have no problems. > > > > > > > > Incidentally, this might be an area when netgraph would be > > > > useful. Instead of having an AoE specific hook in the > > > > stack, you could have an AoE netgraph module that uses the > > > > existing netgraph hooks. It's just an idea, though. > > > > > > Another option might be a PFIL hook. There isn't one there now, > > > but I think I've seen talk of adding one. Actually, if we did > > > that, we could get most of the netgraph specific hooks out of the > > > ethernet code. > > > > What is AoE? And what kind of Frames does it come in? > > ATA-over-Ethernet? > http://news.gw.com/freebsd.arch/12939 > (Ethernet frame type 0x88a2 apparently) Ok, I see. However plugging in using PFIL_HOOKS is not an option here because at the moment they only work for IP packets and not for ethernet frames. -- Andre