]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/fib_rules.c
net: add fib_rules_ops to flush_cache method
[net-next-2.6.git] / net / ipv4 / fib_rules.c
index bc05de413087e5de758abb710742191b9318f6bd..6080d712082160b649cea3675901072be287f705 100644 (file)
@@ -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 = {