Re: option directive and turning on AOE

From: Scott Long (scottl_at_freebsd.org)
Date: 08/31/04

  • Next message: Sam: "Re: option directive and turning on AOE"
    Date: Tue, 31 Aug 2004 14:40:56 -0600
    To: Brooks Davis <brooks@one-eyed-alien.net>
    
    

    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.
    >
    > -- Brooks
    >

    Do the PFIL hooks exist in 4.x? I know that he's trying to target
    his driver for that right now. Netgraph exists in both, so using it
    would keep his code more portable. Anyways, this isn't my area of
    expertise, so do whatever you find to be best.

    Scott
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Sam: "Re: option directive and turning on AOE"

    Relevant Pages

    • netgraph modules wont unload after use
      ... I've replaced the raw ether_input routine on the interface to continue my module until I can figure out what's wrong with my netgraph glue. ... > to unload once it's participated in a mkpeer/connect operation. ... root at trafmon1:kldload ng_ether ...
      (freebsd-net)
    • Netgraph <-> disk module
      ... I'm trying to implement ata-over-ethernet (aoe) as a netgraph ... As my first kernel programming experience I have completed a netgraph ... The disk ...
      (freebsd-net)
    • Re: A netgraph question.
      ... I actually have two seperate questions involving ... I believe I can do both of these with the netgraph. ... Although I see a named netgraph node there are no hooks. ... Of course I realize that I proabably need to create a node on the kernel side so which type of netgraph node would be suggested? ...
      (freebsd-questions)
    • Re: A netgraph question.
      ... I actually have two seperate questions involving ... I believe I can do both of these with the netgraph. ... Although I see a named netgraph node there are no hooks. ... Of course I realize that I proabably need to create a node on the kernel side so which type of netgraph node would be suggested? ...
      (freebsd-questions)
    • Re: option directive and turning on AOE
      ... this might be an area when netgraph would be ... Instead of having an AoE specific hook in the ... >Another option might be a PFIL hook. ...
      (freebsd-arch)