[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160307.144846.1271615479587219087.davem@davemloft.net>
Date: Mon, 07 Mar 2016 14:48:46 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mkubecek@...e.cz
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kuznet@....inr.ac.ru, jmorris@...ei.org, yoshfuji@...ux-ipv6.org,
kaber@...sh.net, hannes@...essinduktion.org, kafai@...com
Subject: Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers
From: Michal Kubecek <mkubecek@...e.cz>
Date: Fri, 4 Mar 2016 11:59:25 +0100 (CET)
> @@ -1978,6 +1980,12 @@ static int ipv6_route_yield(struct fib6_walker *w)
>
> static void ipv6_route_seq_setup_walk(struct ipv6_route_iter *iter)
> {
> +#ifdef CONFIG_NET_NS
> + struct net *net = iter->p.net;
> +#else
> + struct net *net = &init_net;
> +#endif
Please use read_pnet(), it exists so that we don't need to do ugly CPP
stuff like this in *.c files.
Thanks.
Powered by blists - more mailing lists