]> git.baikalelectronics.ru Git - kernel.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)
commit22f28849f03f2e88da7867be98a615df460cf7b6
tree6093005afdca1825197758d851ca5f275d62356f
parentf30078dc840cfbd8b945b9e0e782043fef9ad3f6
[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