[NETNS]: Add namespace to API for routing /proc entries creation.
This adds netns parameter to fib_proc_init/exit and replaces __init specifier with __net_init. After this, we will not yet have these proc files show info from the specific namespace - this will be done when these tables become namespaced. 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
5fd30ee7c4
commit
61a0265344
@@ -253,8 +253,8 @@ static inline void fib_res_put(struct fib_result *res)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
extern int fib_proc_init(void);
|
||||
extern void fib_proc_exit(void);
|
||||
extern int __net_init fib_proc_init(struct net *net);
|
||||
extern void __net_exit fib_proc_exit(struct net *net);
|
||||
#endif
|
||||
|
||||
#endif /* _NET_FIB_H */
|
||||
|
Reference in New Issue
Block a user