Re: [RFC 2.6.10 1/22] xfrm: Add direction information to xfrm_state

From: Dave Dillow (dave_at_thedillows.org)
Date: 12/30/04

  • Next message: Georg C. F. Greve: "Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard"
    To: Ingo Oeser <ioe-lkml@axxeo.de>
    Date:	Thu, 30 Dec 2004 11:21:27 -0500
    
    

    [readding netdev to the cc list]

    On Thu, 2004-12-30 at 08:36, Ingo Oeser wrote:
    > Hi David,
    >
    > I'm happy to see a framework and example driver for this.

    Thanks, I'm just glad it works.

    > David Dillow schrieb:
    > > diff -Nru a/include/net/xfrm.h b/include/net/xfrm.h
    > > --- a/include/net/xfrm.h 2004-12-30 01:12:08 -05:00
    > > +++ b/include/net/xfrm.h 2004-12-30 01:12:08 -05:00
    > > @@ -194,6 +203,7 @@
    > > struct xfrm_state *(*find_acq)(u8 mode, u32 reqid, u8 proto,
    > > xfrm_address_t *daddr, xfrm_address_t *saddr,
    > > int create);
    > > + void (*map_direction)(struct xfrm_state *xfrm);
    > > };
    > >
    >
    > Please don't build modifiers, but build functions instead.
    >
    > e.g.
    >
    > xfrm->direction = map_direction(xfrm)
    >
    > That way you don't hide the assignment and thus code becomes much clearer and
    > can be called multiple times without risk.

    I'll make the change for the next iteration.

    -- 
    Dave Dillow <dave@thedillows.org>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Georg C. F. Greve: "Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard"

    Relevant Pages

    • Re: TG3 doesnt work in kernel 2.4.27 (David S. Miller)
      ... David> Please make sure you try current sources, ... David> but positive reports for IBM blades from people actually ... David> using the correct current 3.9 driver. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: C99 Initialisers
      ... it's up to the maintainer of the driver what they want to ... So, Jeff and David, here's a patch against the latest 2.6.0-test3 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: TG3 doesnt work in kernel 2.4.27 (David S. Miller)
      ... David> driver version 3.9 it is not the latest. ... David> but positive reports for IBM blades from people actually ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: My thoughts on the "new development model"
      ... |>>> 2.6 tree is great for gentoo users who like gcc consuming all CPU ... |>> that after a month or so of fixes etc it will be a very stable kernel ... driver for 2.6.7 for an ADSL card; a development driver for 2.6.5 for a ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: sata related hang with linux-2.6
      ... IMHO there's something not quite right with the Silicon Image libata ... Perhaps the driver is enabling the hardware to generate interrupts ... before setting up the interrupt routine for it? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)