Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352407

Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers

From Cong Wang <xiyou.wangcong@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers
Date 2016-03-08 01:30 +0100
Message-ID <radHc-1Il-3@gated-at.bofh.it> (permalink)
References <r8VCG-5oY-19@gated-at.bofh.it> <r8VMl-5IQ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Mar 4, 2016 at 2:59 AM, Michal Kubecek <mkubecek@suse.cz> wrote:
>  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
> +

You should pass the struct net pointer to ipv6_route_seq_setup_walk()
instead of reading it by yourself.

I don't find anyone actually using iter->p, it probably can be just removed.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/3] ipv6: per netns FIB6 walkers and garbage collector Michal Kubecek <mkubecek@suse.cz> - 2016-03-04 12:00 +0100
  [PATCH net-next 3/3] ipv6: per netns FIB garbage collection Michal Kubecek <mkubecek@suse.cz> - 2016-03-04 12:00 +0100
  [PATCH net-next 2/3] ipv6: per netns fib6 walkers Michal Kubecek <mkubecek@suse.cz> - 2016-03-04 12:10 +0100
    Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers David Miller <davem@davemloft.net> - 2016-03-07 20:50 +0100
    Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers Cong Wang <xiyou.wangcong@gmail.com> - 2016-03-08 01:30 +0100
      Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers Michal Kubecek <mkubecek@suse.cz> - 2016-03-08 08:10 +0100
        Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers Michal Kubecek <mkubecek@suse.cz> - 2016-03-08 11:10 +0100
    Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers Cong Wang <xiyou.wangcong@gmail.com> - 2016-03-08 01:30 +0100

csiph-web