]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Add family scope inetpeer flushes.
authorDavid S. Miller <davem@davemloft.net>
Sun, 10 Jun 2012 07:24:21 +0000 (00:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 09:09:10 +0000 (02:09 -0700)
commitf70e6942fed4d9e47732dbe17057c25ddc6a8c35
tree30262edc9721ac70e423bcc8d51f558d2962b539
parent75293f44232dfeb57fbdd3e1aa92027f184a6fa1
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>
include/net/inetpeer.h
net/ipv4/inetpeer.c
net/ipv4/route.c