[NETNS]: Add netns parameter to fib_rules_(un)register.
The patch extends the different fib rules API in order to pass the network namespace pointer. That will allow to access the different tables from a namespace relative object. As usual, the pointer to the init_net variable is passed as parameter so we don't break the network. Acked-by: Benjamin Thery <benjamin.thery@bull.net> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
41a76906b3
commit
f8c26b8d58
@@ -314,5 +314,5 @@ static int __init fib_default_rules_init(void)
|
||||
void __init fib4_rules_init(void)
|
||||
{
|
||||
BUG_ON(fib_default_rules_init());
|
||||
fib_rules_register(&fib4_rules_ops);
|
||||
fib_rules_register(&init_net, &fib4_rules_ops);
|
||||
}
|
||||
|
Reference in New Issue
Block a user