[FIB]: Add netns to fib_rules_ops.
The backward link from FIB rules operations to the network namespace will allow to simplify the API a bit. Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
853f4b5055
commit
0359238333
@ -315,6 +315,8 @@ int __net_init fib4_rules_init(struct net *net)
|
||||
if (ops == NULL)
|
||||
return -ENOMEM;
|
||||
INIT_LIST_HEAD(&ops->rules_list);
|
||||
ops->fro_net = net;
|
||||
|
||||
fib_rules_register(net, ops);
|
||||
|
||||
err = fib_default_rules_init(ops);
|
||||
|
Reference in New Issue
Block a user