[Devel] Re: [patch 1/1][NETNS] fix fib_frontend compilation error

Denis V. Lunev den at sw.ru
Fri Nov 16 03:33:50 PST 2007


apparently, the patch is not enough, fib4_rules_init is called from
non-init function. I'll drop this one during port to 2.6.25 tree

dlezcano at fr.ibm.com wrote:
> Added net namespace parameter to fib4_rules_init when statically
> defined in fib_frontend.c
> 
> Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
> ---
>  net/ipv4/fib_frontend.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux-2.6-netns/net/ipv4/fib_frontend.c
> ===================================================================
> --- linux-2.6-netns.orig/net/ipv4/fib_frontend.c
> +++ linux-2.6-netns/net/ipv4/fib_frontend.c
> @@ -59,7 +59,7 @@ struct fib_table *ip_fib_main_table;
>  #define FIB_TABLE_HASHSZ 1
>  static struct hlist_head fib_table_hash[FIB_TABLE_HASHSZ];
>  
> -static void __init fib4_rules_init(void)
> +static void __init fib4_rules_init(struct net *net)
>  {
>  	ip_fib_local_table = fib_hash_init(RT_TABLE_LOCAL);
>  	hlist_add_head_rcu(&ip_fib_local_table->tb_hlist, &fib_table_hash[0]);
> 

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list