[PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-12 Thread Aurélien Charbon
Here is a patch for the ip_map caching code part in nfs server. I have updated the code to use Brian Haley's ipv6_addr_v4mapped function, and corrected pointed out mistakes. So the first patch in attachment must be applied on a vanilla kernel before to include IPv4 mapping functions that are use

[PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-22 Thread Aurélien Charbon
Here is a patch for the ip_map caching code part in nfs server. I have updated the code to use Brian Haley's ipv6_addr_v4mapped function, and corrected pointed out mistakes. So the first patch in attachment must be applied on a vanilla kernel before. In case of bad formatting due to my mailer,

[PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-30 Thread Aurélien Charbon
Hi, Here is the IPv6 support patch for the ip_map caching code part in nfs server. I have ported it on 2.6.24-rc1 (in which Brian Haley's ipv6_addr_v4mapped function is included) In case of bad formatting due to my mailer, you can also find the patch in attachment. Tests: tested with onl

Re: [PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-12 Thread Brian Haley
Hi Aurelien, There were some of my comments you haven't addressed yet, comments in-line. Aurélien Charbon wrote: Here is a patch for the ip_map caching code part in nfs server. +for (i = 0; i < ncp->cl_naddr; i++) { +/* Mapping address */ +ipv6_addr_v4map(ncp->cl_addrlist

Re: [PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-24 Thread Brian Haley
Hi Aurelien, I think you're almost there, at least with my comments :) linux-2.6.23-ipmap/include/net/ipv6.h --- linux-2.6.23-haley/include/net/ipv6.h2007-10-22 09:42:58.0 +0200 +++ linux-2.6.23-ipmap/include/net/ipv6.h2007-10-22 10:10:59.0 +0200 @@ -21,6 +21,7 @@ #in

Re: [PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-30 Thread J. Bruce Fields
Thanks for working on this. Could you run linux/scripts/checkpatch.pl on your patch and fix the problems it complains about? On Tue, Oct 30, 2007 at 06:05:42PM +0100, Aurélien Charbon wrote: > static void update(struct cache_head *cnew, struct cache_head *citem) > { > @@ -149,22 +157,24 @@ static