From 0130ce56911880305d1e1336af2b5cf5fa7cd4fe Mon Sep 17 00:00:00 2001 From: "Denis V. Lunev" Date: Sat, 5 Jul 2008 19:01:28 -0700 Subject: [PATCH] --- yaml --- r: 103220 b: refs/heads/master c: ae299fc051aa68ca6ef1807c37bb92d9b6ff817c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/net/fib_rules.h | 2 +- trunk/net/core/fib_rules.c | 2 +- trunk/net/decnet/dn_rules.c | 2 +- trunk/net/ipv4/fib_rules.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 2de5cb39bcd7..605d41a64f06 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 76e6ebfb40a2455c18234dcb0f9df37533215461 +refs/heads/master: ae299fc051aa68ca6ef1807c37bb92d9b6ff817c diff --git a/trunk/include/net/fib_rules.h b/trunk/include/net/fib_rules.h index a5c6ccc5bb19..c2bb5cae6515 100644 --- a/trunk/include/net/fib_rules.h +++ b/trunk/include/net/fib_rules.h @@ -62,7 +62,7 @@ struct fib_rules_ops /* Called after modifications to the rules set, must flush * the route cache if one exists. */ - void (*flush_cache)(void); + void (*flush_cache)(struct fib_rules_ops *ops); int nlgroup; const struct nla_policy *policy; diff --git a/trunk/net/core/fib_rules.c b/trunk/net/core/fib_rules.c index e3e9ab0f74e3..1c2943a119f3 100644 --- a/trunk/net/core/fib_rules.c +++ b/trunk/net/core/fib_rules.c @@ -69,7 +69,7 @@ static void rules_ops_put(struct fib_rules_ops *ops) static void flush_route_cache(struct fib_rules_ops *ops) { if (ops->flush_cache) - ops->flush_cache(); + ops->flush_cache(ops); } int fib_rules_register(struct fib_rules_ops *ops) diff --git a/trunk/net/decnet/dn_rules.c b/trunk/net/decnet/dn_rules.c index 5b7539b7fe0c..14fbca55e908 100644 --- a/trunk/net/decnet/dn_rules.c +++ b/trunk/net/decnet/dn_rules.c @@ -229,7 +229,7 @@ static u32 dn_fib_rule_default_pref(struct fib_rules_ops *ops) return 0; } -static void dn_fib_rule_flush_cache(void) +static void dn_fib_rule_flush_cache(struct fib_rules_ops *ops) { dn_rt_cache_flush(-1); } diff --git a/trunk/net/ipv4/fib_rules.c b/trunk/net/ipv4/fib_rules.c index bc05de413087..6080d7120821 100644 --- a/trunk/net/ipv4/fib_rules.c +++ b/trunk/net/ipv4/fib_rules.c @@ -258,9 +258,9 @@ static size_t fib4_rule_nlmsg_payload(struct fib_rule *rule) + nla_total_size(4); /* flow */ } -static void fib4_rule_flush_cache(void) +static void fib4_rule_flush_cache(struct fib_rules_ops *ops) { - rt_cache_flush(&init_net, -1); + rt_cache_flush(ops->fro_net, -1); } static struct fib_rules_ops fib4_rules_ops_template = {