aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_rules.c')
-rw-r--r--net/ipv4/fib_rules.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c
index b021b3440ca3..fe29b98d6c8f 100644
--- a/net/ipv4/fib_rules.c
+++ b/net/ipv4/fib_rules.c
@@ -298,6 +298,11 @@ static size_t fib4_rule_nlmsg_payload(struct fib_rule *rule)
298 + nla_total_size(4); /* flow */ 298 + nla_total_size(4); /* flow */
299} 299}
300 300
301static void fib4_rule_flush_cache(void)
302{
303 rt_cache_flush(0);
304}
305
301static struct fib_rules_ops fib4_rules_ops = { 306static struct fib_rules_ops fib4_rules_ops = {
302 .family = AF_INET, 307 .family = AF_INET,
303 .rule_size = sizeof(struct fib4_rule), 308 .rule_size = sizeof(struct fib4_rule),
@@ -309,6 +314,7 @@ static struct fib_rules_ops fib4_rules_ops = {
309 .fill = fib4_rule_fill, 314 .fill = fib4_rule_fill,
310 .default_pref = fib4_rule_default_pref, 315 .default_pref = fib4_rule_default_pref,
311 .nlmsg_payload = fib4_rule_nlmsg_payload, 316 .nlmsg_payload = fib4_rule_nlmsg_payload,
317 .flush_cache = fib4_rule_flush_cache,
312 .nlgroup = RTNLGRP_IPV4_RULE, 318 .nlgroup = RTNLGRP_IPV4_RULE,
313 .policy = fib4_rule_policy, 319 .policy = fib4_rule_policy,
314 .rules_list = &fib4_rules, 320 .rules_list = &fib4_rules,