[NETNS][IPV6] fib6_rules - handle several network namespaces
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 4 Mar 2008 07:33:08 +0000 (23:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Mar 2008 07:33:08 +0000 (23:33 -0800)
commit64d451656eb1b22ab8cc8ccea1ded0d1f895d28f
tree1ecd3db4de537c8aad94a43827723668c7e4368c
parentd5d211b581d9254e165fabc73e0cb4700ce6f793
[NETNS][IPV6] fib6_rules - handle several network namespaces

The fib6_rules_ops is moved to the network namespace structure.  All
references are changed to have it relatively to it.

Each time a network namespace is created a new fib6_rules_ops is
allocated, initialized and stored into the network namespace
structure.

The common part of the fib rules is namespace aware, so it is quite
easy to retrieve the network namespace from the rules and use it in
the different callbacks.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv6.h
net/ipv6/fib6_rules.c