ipv4: Elide fib_validate_source() completely when possible.
[deliverable/linux.git] / net / core / fib_rules.c
index 72cceb79d0d4f9bd869fa828a7d04152487be5c7..ab7db83236c96fa2b4746ffc25717f24db671e17 100644 (file)
@@ -151,6 +151,8 @@ static void fib_rules_cleanup_ops(struct fib_rules_ops *ops)
 
        list_for_each_entry_safe(rule, tmp, &ops->rules_list, list) {
                list_del_rcu(&rule->list);
+               if (ops->delete)
+                       ops->delete(rule);
                fib_rule_put(rule);
        }
 }
@@ -499,6 +501,8 @@ static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
 
                notify_rule_change(RTM_DELRULE, rule, ops, nlh,
                                   NETLINK_CB(skb).pid);
+               if (ops->delete)
+                       ops->delete(rule);
                fib_rule_put(rule);
                flush_route_cache(ops);
                rules_ops_put(ops);
This page took 0.024721 seconds and 5 git commands to generate.