]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET] fib_rules: Flush route cache after rule modifications
authorThomas Graf <tgraf@suug.ch>
Tue, 27 Mar 2007 20:56:52 +0000 (13:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:28:18 +0000 (22:28 -0700)
commit73417f617a93cf30342c3ea41abc38927bd467aa
tree6093005afdca1825197758d851ca5f275d62356f
parentbe776281aee54626a474ba06f91926b98bdd180d
[NET] fib_rules: Flush route cache after rule modifications

The results of FIB rules lookups are cached in the routing cache
except for IPv6 as no such cache exists. So far, it was the
responsibility of the user to flush the cache after modifying any
rules. This lead to many false bug reports due to misunderstanding
of this concept.

This patch automatically flushes the route cache after inserting
or deleting a rule.

Thanks to Muli Ben-Yehuda <muli@il.ibm.com> for catching a bug
in the previous patch.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
net/core/fib_rules.c
net/decnet/dn_rules.c
net/ipv4/fib_rules.c