[NETNS]: Pass fib_rules_ops into default_pref method.
fib_rules_ops contains operations and the list of configured rules. ops will become per/namespace soon, so we need them to be known in the default_pref callback. 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
f8c26b8d58
commit
868d13ac81
@@ -56,7 +56,7 @@ struct fib_rules_ops
|
||||
int (*fill)(struct fib_rule *, struct sk_buff *,
|
||||
struct nlmsghdr *,
|
||||
struct fib_rule_hdr *);
|
||||
u32 (*default_pref)(void);
|
||||
u32 (*default_pref)(struct fib_rules_ops *ops);
|
||||
size_t (*nlmsg_payload)(struct fib_rule *);
|
||||
|
||||
/* Called after modifications to the rules set, must flush
|
||||
|
Reference in New Issue
Block a user