diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-11-26 13:13:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-27 01:16:37 +0100 |
commit | de68dca1816660b0d3ac89fa59ffb410007a143f (patch) | |
tree | 9a31e87c6e0504627df25d3a1d39ca7825dcd779 /include/net/inetpeer.h | |
parent | AF_UNIX: Fix poll blocking problem when reading from a stream socket (diff) | |
download | linux-de68dca1816660b0d3ac89fa59ffb410007a143f.tar.xz linux-de68dca1816660b0d3ac89fa59ffb410007a143f.zip |
inet: add a redirect generation id in inetpeer
Now inetpeer is the place where we cache redirect information for ipv4
destinations, we must be able to invalidate informations when a route is
added/removed on host.
As inetpeer is not yet namespace aware, this patch adds a shared
redirect_genid, and a per inetpeer redirect_genid. This might be changed
later if inetpeer becomes ns aware.
Cache information for one inerpeer is valid as long as its
redirect_genid has the same value than global redirect_genid.
Reported-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
Tested-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inetpeer.h')
-rw-r--r-- | include/net/inetpeer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 78c83e62218f..e9ff3fc5e688 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h @@ -35,6 +35,7 @@ struct inet_peer { u32 metrics[RTAX_MAX]; u32 rate_tokens; /* rate limiting for ICMP */ + int redirect_genid; unsigned long rate_last; unsigned long pmtu_expires; u32 pmtu_orig; |