Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2004 13:39:29 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Scott Long <scottl@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: option directive and turning on AOE
Message-ID:  <20040831203929.GB25134@odin.ac.hmc.edu>
In-Reply-To: <4134DF35.7070605@freebsd.org>
References:  <Pine.LNX.4.60.0408311611550.7530@athena> <4134DF35.7070605@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--3uo+9/B/ebqu+fSQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 31, 2004 at 02:27:33PM -0600, Scott Long wrote:
> Sam wrote:
>=20
> >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.
>=20
> 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.
>=20
> 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.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--3uo+9/B/ebqu+fSQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBNOIAXY6L6fI4GtQRAg5YAJ4lEaezZpnR+/CNR3tFJfataDutZgCfc64w
OyOVBAkHghcChKKcdERpw+w=
=fL4C
-----END PGP SIGNATURE-----

--3uo+9/B/ebqu+fSQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040831203929.GB25134>