Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103220
b: refs/heads/master
c: ae299fc
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jul 6, 2008
1 parent fb19a8b commit 0130ce5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76e6ebfb40a2455c18234dcb0f9df37533215461
refs/heads/master: ae299fc051aa68ca6ef1807c37bb92d9b6ff817c
2 changes: 1 addition & 1 deletion trunk/include/net/fib_rules.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/core/fib_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/decnet/dn_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/ipv4/fib_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 0130ce5

Please sign in to comment.