diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-10 09:24:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-11 11:09:10 +0200 |
commit | b48c80ece973e9eddb042f6685b482b261ff0d47 (patch) | |
tree | 30262edc9721ac70e423bcc8d51f558d2962b539 /net/ipv4/route.c | |
parent | ipv4: Kill ip_rt_frag_needed(). (diff) | |
download | linux-b48c80ece973e9eddb042f6685b482b261ff0d47.tar.xz linux-b48c80ece973e9eddb042f6685b482b261ff0d47.zip |
inet: Add family scope inetpeer flushes.
This implementation can deal with having many inetpeer roots, which is
a necessary prerequisite for per-FIB table rooted peer tables.
Each family (AF_INET, AF_INET6) has a sequence number which we bump
when we get a family invalidation request.
Each peer lookup cheaply checks whether the flush sequence of the
root we are using is out of date, and if so flushes it and updates
the sequence number.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 4f5834c4a667..456a9470fb54 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -935,7 +935,7 @@ static void rt_cache_invalidate(struct net *net) get_random_bytes(&shuffle, sizeof(shuffle)); atomic_add(shuffle + 1U, &net->ipv4.rt_genid); - inetpeer_invalidate_tree(net->ipv4.peers); + inetpeer_invalidate_family(AF_INET); } /* |