netdev
[Top] [All Lists]

Re: [PATCH] IPv6 IPsec support

To: Kazunori.Miyazawa@xxxxxxxxxxxxxxx
Subject: Re: [PATCH] IPv6 IPsec support
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Tue, 18 Feb 2003 23:33:01 -0800 (PST)
Cc: netdev@xxxxxxxxxxx, usagi-core@xxxxxxxxxxxxxx, kuznet@xxxxxxxxxxxxx
In-reply-to: <20030219134850.5f203ea7.Kazunori.Miyazawa@xxxxxxxxxxxxxxx>
References: <20030219134850.5f203ea7.Kazunori.Miyazawa@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
As promised, some more comments:

1) Please, can you split out seperate patch for changes
   to net/ipv4/xfrm_user.c?  They are independant.

   Kunihiro sent me identical patch, so please could you
   add him to credits in comment?  Thank you.

2) I believe that net/ipv6/xfrm_policy.c is another area
   for more code sharing.

   Any time that I see removal of 'static', it is clue to
   me :-)

   Short term you can do as I suggested for secpath_cachep
   issue, that is to move this new code to net/ipv4/xfrm_policy.c
   as it is, conditionalized by CONFIG_IPV6 || CONFIG_IPV6_MODULE.

   Later we can work on increased code sharing here.

3) I noticed comment above transformation from
   explicit dst->output() call to dst_output().

   It is not IPSEC issue, rather I believe that entire tree should
   have this conversion eventually.  The concept of stackable
   destination cache entries is a generic one.

4) I believe some module symbol exports are missing to handle
   ipv6 as module.

   For example, for skb_ah_walk and skb_esp_walk.

The rest of code looks fine to me.

Now is not the time to get picky about small details, let us only get
first draft basically correct.


<Prev in Thread] Current Thread [Next in Thread>